Encryption of programs represented as polynomial mappings and their computations

ABSTRACT

Three variations of a method of representing (abstract) state machines as polynomial mappings, and three variations of a corresponding encryption program stored on a computer readable medium. The encryption program is based directly on symbolic functional composition of polynomial mappings with permutations expressed as polynomial mappings.

DISCUSSION OF THE BACKGROUND

[0001] 1. Field of Invention

[0002] The present invention relates to a secure encryption method, and more particularly to a method for converting a class of abstract computation machines (state machines) to a polynomial representation.

[0003] 2. Background of the Invention

[0004] Previous work on encrypted functions is described in T. Sander and C. Tschudin, “Protecting Mobile Agents Against Malicious Hosts,” Springer LNCS 1419, pp. 44-60 (hereinafter “Sander”) (the contents of which are incorporated herein by reference), which describes a system for evaluating a single encrypted polynomial. Sander describes encrypting polynomials by selecting an appropriate algorithm for encryption of the polynomial's coefficients on an individual basis.

[0005] Additional research was performed on privacy homomorphisms. A simplistic description of a privacy homomorphism is an encryption function, e, such that

e(x+y)=e(x)+e(y), e(xy)=e(x)e(y), etc.

[0006] Such privacy homomorphisms are discussed in R. Rivest, L. Adleman, and M. Dertouzos, “On Data Banks and Privacy Homomorphisms,” in “Foundations of Secure Computation,” editor R. DeMillo, Academic Press, 1978, ISBN 0-12-210350-5 (hereinafter “Rivest”), the contents of which are incorporated herein by reference.

[0007] Multi-party computations are also known. Common for many of these protocols is that they solve the problem where m people wish to evaluate a function ƒ(x₁, . . . ,x_(m)), where each person P_(i) knows only x_(i), such that:

[0008] 1. no information or a minimum of information about any x_(j) for j≠i is leaked to P_(i) during the evaluation of the function ƒ

[0009] 2. the identity of all cheaters is known by the time the evaluation is completed

[0010] 3. the value of ƒ(x₁, . . . ,x_(m)) becomes known to all participants simultaneously (or almost simultaneously) upon termination of the protocol.

[0011] One of the first protocols for secure multiparty computations was proposed in A. Yao, “Protocols for Secure Computations (extended abstract)”, 23^(rd) Annual Symposium on Foundations of Computer Science, 1982, IEEE Computer Society's Technical Committee on Mathematical Foundations of Computing (hereinafter “Yao”), the contents of which are incorporated herein by reference. Yao describes the case where m people want to compute ƒ(x₁, . . . ,x_(m)) under the following conditions:

[0012] 1. each person P_(i) initially knows only x_(i), and does not the value of any x_(j) for j≠i

[0013] 2. ƒ must be computed such that after the computation, person P_(i) still knows the exact value of only x_(i), and does not the value of any x_(j) for j≠i

[0014] Yao describes computing functions of the form ƒ: X₁× . . . ×X_(m)→V.

[0015] Another approach is described in G. Brassard and C. Crepeau, “Zero-Knowledge Simulation of Boolean Circuits,” Advances in Cryptology—CRYPTO'86: Proceedings, Lecture Notes in Computer Science, Vol. 263, pp. 223-233, Springer-Verlag, 1986 (hereinafter “Brassard”), the contents of which are incorporated herein by reference. Brassard describes a method of simulating boolean circuits using zero-knowledge interactive protocols. For example, person B computes a function ƒ:D→{0,1} in several rounds with the aid of person A. Person A provides data about the evaluation to person B using a zero-knowledge interactive protocol. Person B cannot compute the encrypted evaluation from encrypted data supplied by person A.

[0016] Chaum, Damgård, and van de Graaf, “Multiparty Computations Ensuring Privacy of Each Party's Input and Correctness of the Result,” Advances in Cryptology—CRYPTO'87: Proceedings, editor C. Pomerance, Lecture Notes in Computer Science, Vol. 293, pp. 87-119, Springer-Verlag, 1987 (hereinafter “Chaum”) (the contents of which are incorporated herein by reference) describes an alternative to Yao's protocols. That alternative requires less computation, but assumes quadratic residues.

[0017] Abadi, Feigenbaum, and Kilian, “On Hiding Information from an Oracle,” Journal Computer System Science, Vol. 39 (1989), 21-50 (hereinafter “Abadi—1”) (the contents of which are incorporated herein by reference) discusses computing with encrypted data. The abstract describes that: Player A wishes to know the value ƒ(x) for some x but lacks the power to compute it. Player B has the power to compute f and is willing to send ƒ(y) to A if she sends him y, for any y. A encrypts x, sends y=E(x) to B, who then computes ƒ(y), returns this result to A, who then infers ƒ(x) from ƒ(y). M. Abadi and J. Feigenbaum, “Secure Circuit Evaluation,” Journal of Cryptology, No. 2, pp. 1-12, 1990 (hereinafter “Abadi—2”) (the contents of which are incorporated herein by reference) describes a related problem. A protocol is used to evaluate a function ƒ(x) by two parties, where one knows how to compute ƒ but does not know x, and the other party knows x, but not how to compute ƒ. The ƒ in question would be expressed as a boolean circuit. This is in fact again the privacy homomorpism problem.

[0018] Additional work has been performed recently by M. Naor and B. Pinkas, “Oblivious Transfer and Polynomial Evaluation”, STOC'99, pp.245-254, and C. Cachin, J. Camenisch, J. Kilian, and J. Mueller, “One-Round Secure Computation and Secure Autonomous Mobile Agents”, ICALP 2000, pp.512-523, and D. Beaver, “Minimal-Latency Secure Function Evaluation”, EUROCRYPT 2000, pp.335-350 (the contents of each of those references is incorporated herein by reference).

[0019] Encryption systems are discussed in patents such as: U.S. Pat. No. 4,120,030, U.S. Pat. No. 4,168,396, U.S. Pat. No. 4,278,837, U.S. Pat. No. 4,306,389, U.S. Pat. No. 4,319,079, U.S. Pat. No. 4,433,207, U.S. Pat. No. 4,465,901, U.S. Pat. No. 4,633,388, U.S. Pat. No. 4,764,959, U.S. Pat. No. 4,847,902, U.S. Pat. No. 4,937,861, U.S. Pat. No. 5,007,082, U.S. Pat. No. 5,033,084, U.S. Pat. No. 5,153,921, U.S. Pat. No. 5,341,429, U.S. Pat. No. 5,392,351, U.S. Pat. No. 5,544,244, U.S. Pat. No. 5,592,549, U.S. Pat. No. 5,892,899, U.S. Pat. No. 6,052,870, and U.S. Pat. No. 6,049,609.

[0020] As additional background, a brief discussion of representing programs as polynomials is provided herein. The polynomial representation of a program is generated in two steps. First, the program as represented in a programming language is transformed to an abstract computation machine. Second, the abstract computation machine is transformed to a polynomial mapping. As would be appreciated by one of ordinary skill in the art, the transformation of a program in a programming language is a process specific to the selected programming language, and transformation methods are constructed for each programming language.

[0021] L. Blum, M. Shub, and S. Smale, “On a Theory of Computation and Complexity over the Real Numbers: NP-completeness, Recursive Functions, and Universal Machines,” Bulletin of the American Mathematical Society, vol. 21, No. 1, pp. 1-46 (hereinafter “Blum”) (the contents of which are incorporated herein by reference) describes transforming abstract computation machines to polynomials. In addition, it is possible to represent the computations of most types of finite automata using polynomials over a finite field.

SUMMARY OF THE INVENTION

[0022] The present invention addresses computation when secrets are kept in the memory of a computer, such that no secrets are represented in plaintext prior to-, during- or after the computation, unless the computation itself dictates otherwise. The invention reduces the need for communication between parties during computation. The invention achieves this with a method and system for encrypting programs, as well as a method and system for representing a class of abstract computation machines using polynomials. The invention also achieves this with a method and system for directly encrypting function tables.

[0023] Additionally, the invention also provides a method and system for encrypting abstract computation machines represented in part using state-transition tables. Accordingly, it is an object of the present invention to overcome deficiencies in known encryption methods and systems.

[0024] It is a further object of the present invention to provide encrypted universal (Turing) computation.

[0025] It is a still further object of the present invention to provide encrypted universal interactive (Turing) computation.

[0026] It is another object of the present invention to provide a method and system for transforming abstract computation devices to computation devices expressed with polynomials.

[0027] Another object of the present invention is to provide a method and system for renewing—or re-encrypting—a partially encrypted state machine.

BRIEF DESCRIPTION OF THE DRAWINGS

[0028] A more complete appreciation of the invention and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:

[0029]FIG. 1 is a schematic illustration of a computer system for providing encrypted computing according to one embodiment of the present invention;

[0030]FIG. 2 is a top view of a smartcard for performing encrypted computation;

[0031]FIG. 3 is a block diagram of a smartcard chip for the smartcard of FIG. 2;

[0032]FIG. 4 is a schematic illustration of a client remotely logging into a server computer;

[0033]FIG. 5A is an automata transition diagram illustrating inputs, outputs and transitions in an exemplary state machine that does not already have a dedicated stopping state, q_(a);

[0034]FIG. 5B is a function table corresponding to the transition diagram of FIG. 5A;

[0035]FIG. 5C is a transition diagram illustrating inputs, outputs and transitions in an exemplary state machine that already has an isolated node that can be used as a dedicated stopping state, q_(a);

[0036]FIG. 5D is a function table corresponding to the transition diagram of FIG. 5C;

[0037]FIG. 6A is a transition diagram corresponding to the addition of inputs and outputs supporting the addition of the dedicated state q_(a) to the diagram of FIG. 5A;

[0038]FIG. 6B is a corresponding function table supporting the augmented automata of FIG. 6A;

[0039]FIG. 6C is a transition diagram corresponding to the addition of inputs and outputs supporting the designation of the dedicated state q_(a) in the diagram of FIG. 5C;

[0040]FIG. 6D is a corresponding function table supporting the augmented automata of FIG. 6C;

[0041] FIGS. 7A-7C illustrate vectorization examples for N=2, 3, and at least 4 for the diagram of FIG. 6C;

[0042] FIGS. 8A-8C illustrate determining prime numbers N based on a selected vectorization of a state machine as defmed in FIG. 7;

[0043]FIGS. 9A and 9B illustrate a method of adding states to Q', adding dummy input symbols, dummy output symbols, and completing the state machine function table, using the example of FIG. 5C as augmented in FIG. 7;

[0044]FIG. 10 illustrates a random assignment of entries after adding dummy input and output symbols;

[0045]FIG. 11A illustrates an initial function table (corresponding to the vectorization of FIG. 8B) prior to adding entries corresponding to a random duplication of states;

[0046]FIG. 11B illustrates an augmented function table in which a randomly selected non-dedicated state was selected as a source of a copy operation for a first row with undefined elements;

[0047]FIGS. 11C and 11D illustrate transition diagrams corresponding to the function tables of FIGS. 11A and 11B, respectively;

[0048]FIG. 12A illustrates an augmented function table (repeated from FIG. 11B) prior to randomizing links transitions (or arcs) during a random row copying process;

[0049]FIG. 12B illustrates an augmented function table in which a transition of FIG. 12A is modified after copying a row;

[0050]FIGS. 12C and 12D illustrate transition diagrams corresponding to the function tables of FIGS. 12A and 12B, respectively;

[0051]FIGS. 13A and 13B illustrate a function table before and after two nodes are switched;

[0052]FIGS. 14A and 14B illustrate a function table before and after two input symbols are switched;

[0053]FIGS. 15A and 15B illustrate a function table before and after two output symbols are switched;

[0054]FIG. 16A is a polynomial mapping of inputs and states to outputs;

[0055]FIG. 16B is a polynomial interpolation for various states and inputs;

[0056]FIG. 17 illustrates a method of precomputing the a₁(x) functions;

[0057]FIG. 18 illustrates an exemplary BSS machine to be converted to a BSS' machine according to one aspect of the present invention;

[0058]FIG. 19 illustrates a method of transforming the BSS machine of FIG. 18;

[0059]FIG. 20A illustrates a method of transforming the BSS machine of FIG. 19 into a BSS' machine;

[0060]FIG. 20B illustrates an equivalent BSS' machine generated from scratch;

[0061]FIG. 21 illustrates a method of transforming a BSS' machine into a single polynomial mapping;

[0062] FIGS. 22A-22C illustrates three consecutive steps of a key generation process;

[0063]FIG. 23 illustrates a graph for use in computing a permutation and its inverse via interpolation;

[0064]FIGS. 24A and 24B illustrate two arithmetic operations over a field as exemplified for Z₅;

[0065] FIGS. 25A-25C illustrate encrypting plural variables and mapping components of multivariate polynomials with univariate polynomials;

[0066]FIG. 26A illustrates a partially encrypted Er_(r,s) ∘ h to be used as a starting point in a process of re-encrypting plural variables and mapping components of multivariate polynomials with second univariate polynomials;

[0067]FIG. 26B illustrates a process of re-encrypting plural variables and mapping components of multivariate polynomials with second univariate polynomials;

[0068]FIG. 26C illustrates a result of the re-encrypting process of FIG. 26B;

[0069]FIG. 27A illustrates a mapping ƒ= represented by a function table;

[0070]FIG. 27B illustrates a function table t_(ƒ) from the function table of FIG. 27A;

[0071]FIGS. 27C and 27D generally illustrate converting from a function table for ƒ to a function table for t_(i);

[0072] FIGS. 28A-28E illustrate a process of symbolically composing mappings represented as function tables to produce a combined function table;

[0073]FIGS. 29A and 29B illustrate a process of generating keys for multivariate encryption of multivariate polynomial mappings;

[0074]FIG. 30 illustrates the process of encrypting plural variables and mapping components of multivariate polynomials with multivariate polynomials;

[0075]FIG. 31A illustrates the process of re-encrypting plural variables and mapping components of multivariate polynomials with second multivariate polynomials;

[0076]FIG. 31B illustrates the result of the process of FIG. 31A;

[0077]FIG. 32A illustrates a process of symbolically composing mappings represented as function tables to produce a combined function table;

[0078]FIG. 32B illustrates the result of the process of FIG. 32A;

[0079]FIG. 33 illustrates a process of symbolically composing mappings represented as function tables to produce a combined function table;

[0080]FIG. 34 illustrates a Turing platform supporting unencrypted and partially encrypted composition for some machine M on a host

;

[0081]FIG. 35 illustrates a method of computing with host

running a Turing platform T supporting at least one Mealy register or BSS' machine M;

[0082]FIG. 36A illustrates a state of a register machine including register vectors, an instruction pointer vector, and a storage pointer vector;

[0083]FIG. 36B illustrates shared data in the form of D-vectors including a storage cell {right arrow over (S)}_({right arrow over (D)}) that is indexed by {right arrow over (D)};

[0084]FIG. 36C illustrates instructions in the form of C-vectors including a storage cell {right arrow over (S)}_({right arrow over (C)}) that is indexed by {right arrow over (C)};

[0085]FIG. 36D illustrates a method of operating one the state of FIG. 36A;

[0086]FIG. 36E illustrates the result of the method of FIG. 36D;

[0087] FIGS. 37A-38C illustrate a method of symbolic composition of two mappings using function tables;

[0088]FIG. 39A illustrates a method of generating keys for parameterized encryption of multivariate mappings;

[0089]FIG. 39B illustrates a result after one step of the process of FIG. 39A;

[0090]FIG. 40 illustrates a method of parameterized encryption of plural variables and mapping components of multivariate mappings with multivariate mappings;

[0091]FIGS. 41A and 41B illustrate a method of augmenting a Mealy machine in preparation for its use in computation;

[0092]FIGS. 42A and 42B illustrate a method of obfuscation of a Mealy machine as part of a method of augmentation;

[0093]FIG. 43A and 43B illustrate processes of transforming state transition and output mappings of an augmented Mealy machine to polynomial mappings where precomputation is and is not cost effective, respectively;

[0094]FIG. 44 illustrates a method of adapting a BSS machine for encrypted computation where the end result itself may be transformed into a single multivariate polynomial mapping;

[0095]FIG. 45 illustrates a method of specifying a BSS' machine directly;

[0096]FIG. 46 illustrates a method of transforming a BSS' machine into a single multivariate polynomial mapping;

[0097]FIG. 47 illustrates a method of transforming a BSS' machine into a single mapping represented as a function table;

[0098]FIG. 48 illustrates a method of specifying an initial state for a BSS' machine;

[0099]FIG. 49 illustrates a method of computing with a BSS' machine transformed to a single multivariate mapping H (the BSS' machine's computing endomorphism);

[0100]FIG. 50 illustrates a method of specifying a pattern of encryption of multivariate mappings with univariate mappings;

[0101]FIG. 51 illustrates a method of generating keys for univariate encryption of multivariate mappings;

[0102]FIG. 52 illustrates a method of encrypting plural variables and components of multivariate mappings represented using either polynomials or function tables with univariate functions;

[0103]FIG. 53 illustrates a method of generating re-encryption keys for re-encryption of plural variables and components of multivariate mappings, already partially encrypted using first univariate functions, with second univariate functions;

[0104]FIG. 54 illustrates a method of re-encrypting plural variables and mapping components of multivariate mappings, already partially encrypted using first univariate functions, with second univariate functions;

[0105]FIG. 55 illustrates a method of converting from a mapping, given as a function table, to a function given as a function table;

[0106]FIG. 56 illustrates a method of converting from a function, given as a function table, to a mapping given as a function table;

[0107]FIG. 57 illustrates a method of symbolically composing two mappings, both represented as a function tables, to produce a function table for their composition, (g(ƒ(x));

[0108]FIG. 58 illustrates a pattern of encryption of multivariate mappings with other multivariate mappings;

[0109]FIG. 59 illustrates a method of generating keys for multivariate encryption of multivariate mappings;

[0110]FIG. 60 illustrates a method of encrypting plural groups of variables and groups of mapping components of multivariate mappings, h, with other multivariate mappings;

[0111]FIG. 61 illustrates a method of generating re-encryption keys for re-encrypting of a multivariate mapping, h, already partially encrypted with a first multivariate mapping, s, with second multivariate mappings;

[0112]FIG. 62 illustrates a method of re-encrypting a multivariate mapping, h, already partially encrypted with a first multivariate mapping, s, with second multivariate mappings;

[0113]FIG. 63 illustrates a method of symbolically composing ƒ and h₁, . . . , h_(k), represented as function tables, to produce a function table for the composition,ƒ(h₁(),h₂(), . . . h_(k)());

[0114]FIG. 64 illustrates a method of symbolically composing ƒ and h₁, . . . h_(k), represented as function tables, to produce a function table for the composition,

[0115] (h₁(ƒ₁(. . . ), . . . ,ƒ_(c) ₁ (. . . )), . . . ,h_(k)(ƒ_(n−c) _(k) ₊₁(. . . ), . . . ,ƒ_(n)(. . . )));

[0116]FIG. 65 illustrates a method of computing with a host z,901 running a Turing platform T supporting at least one of a Mealy and a BSS' machine M;

[0117]FIG. 66 illustrates a method of initializing a register machine;

[0118]FIG. 67 illustrates a method of computing with a register machine;

[0119]FIG. 68 illustrates a method of computing with a register machine M supported by a Turing platform T. on a host

;

[0120]FIG. 69 illustrates a method of symbolically composing ƒ with and h₁, . . . h_(k), represented as function tables, to produce a mapping;

[0121]FIG. 70 illustrates a method of symbolically composing h₁, . . ., h_(k) with ƒ, where all mappings are represented as function tables, producing a new composite mapping;

[0122]FIG. 71 illustrates a method of specifying a pattern of parameterized encryption of multivariate mappings with other multivariate mappings;

[0123]FIG. 72 illustrates a method of generating keys for parameterized multivariate encryption of multivariate mappings;

[0124]FIG. 73 illustrates a method of encrypting a multivariate mapping h with parameterized multivariate mappings;

[0125]FIG. 74 illustrates a method of specifying an encryption pattern for parameterized encryption for a specialized application of a register machine;

[0126]FIGS. 75A and 75B illustrate a method of key generation for parametric encryption that is specially adapted for application to a register machine; amd

[0127]FIG. 76 illustrates a method of parameterized encryption specifically adapted to application to a register machine.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0128] Referring now to the drawings, wherein like reference numerals designate identical or corresponding parts throughout the several views, FIG. 1 is a schematic illustration of a computer system for providing encrypted computing. A computer 100 implements the method of the present invention, wherein the computer housing 102 houses a motherboard 104 which contains a CPU 106, memory 108 (e.g., DRAM, ROM, EPROM, EEPROM, SRAM, SDRAM, and Flash RAM), and other optional special purpose logic devices (e.g., ASICs) or configurable logic devices (e.g., GAL and reprogrammable FPGA). The computer 100 also includes plural input devices, (e.g., a keyboard 122 and mouse 124), and a display card 110 for controlling monitor 120. In addition, the computer system 100 further includes a floppy disk drive 114; other removable media devices (e.g., compact disc 119, tape, and removable magneto-optical media (not shown)); and a hard disk 112, or other fixed, high density media drives, connected using an appropriate device bus (e.g., a SCSI bus, an Enhanced IDE bus, or a Ultra DMA bus). Also connected to the same device bus or another device bus, the computer 100 may additionally include a compact disc reader 118, a compact disc reader/writer unit (not shown) or a compact disc jukebox (not shown). Although compact disc 119 is shown in a CD caddy, the compact disc 119 can be inserted directly into CD-ROM drives which do not require caddies. In addition, a printer (not shown) also provides printed listings of the results of encrypted computing.

[0129] As stated above, the system includes at least one computer readable medium. Examples of computer readable media are compact discs 119, hard disks 112, floppy disks, tape, magneto-optical disks, PROMs (EPROM, EEPROM, Flash EPROM), DRAM, SRAM, SDRAM, etc. Stored on any one or on a combination of computer readable media, the present invention includes software for controlling both the hardware of the computer 100 and for enabling the computer 100 to interact with a human user. Such software may include, but is not limited to, device drivers, operating systems and user applications, such as development tools. Such computer readable media further includes the computer program product of the present invention for providing encrypted computing. The computer code devices of the present invention can be any interpreted or executable code mechanism, including but not limited to scripts, interpreters, dynamic link libraries, Java classes, and complete executable programs. Such computer code devices may also be dynamically loaded across a network (e.g., downloaded from a Wide Area Network (e.g., the Internet)).

[0130] As described above, the computer program devices of the present invention can be implemented in numerous ways. In one embodiment of those code devices, the devices are not separate programs but rather are plug-ins to a separate program. In such an embodiment, an Application Programming Interface (API) provides a definition of how the encryption and decryption parameters are passed between the program and the plug-in performing the encryption. APIs and plug-ins, such as the Pretty Good Privacy (PGP) interface and plug-in that enables e-mail to be encrypted or decrypted within mail programs such as Eudora Mail and Microsoft Outlook, are known. Accordingly, one of ordinary skill in the art, based on the present specification, would be able to make and use an API and/or interface for performing encrypted computing.

[0131] Applications of the present invention include, but are not limited to, the following:

[0132] smart cards (see FIGS. 2 and 3) and similar trusted computing bases for high-security applications since current smart cards are vulnerable because they still do sensitive processing unencrypted

[0133] software implementations of cryptosystems on insecure platforms (see FIG. 1)

[0134] third party key generation systems, where trust of the party generating the keys is crucial to its value as a part of a security system

[0135] secure remote logins and cryptographic operations (see FIG. 4).

[0136] The present invention also enables the construction of secure mobile agents for computer systems that have no inherent limitations on their computing ability.

[0137] The present invention provides a method and system for constructing “black-box” programs for computations. The cryptographically enhanced functions (e.g. polynomials or state transition tables) produced by the method and system are applied to carry out a computation specified by a state machine. Thus, the method:

[0138] 1. makes incomprehensible the nature of the program itself in its cryptographically enhanced function representation,

[0139] 2. ensures that workspace used by the program is encrypted during use, and

[0140] 3. ensures encryption of output, if desirable.

[0141] As a preliminary matter, as used herein, the phrase “partially encrypted” refers to a set of functions in which at least one function is cryptographically enhanced without requiring that all functions in the set be cryptographically enhanced. The present invention is applicable in at least four computations. The first computation involves at least two parties, A and B, where A wishes to execute a computation using B's computing resources such that:

[0142] 1. A supplies B with a partially encrypted abstract computing machine,ƒ, expressed using cryptographically enhanced functions, and a partially encrypted initial state, wherein the abstract computation machine is transmitted either alone or within a conventional programming language (e.g.

[0143] Java, Pascal, C, C++, machine code), part of which executes the computations of the partially encrypted abstract computing machine, and

[0144] 2. B supplies any input “requested” by ƒ, depending on which variant of the abstract computing machine A decides to use. When using a conventional program, B supplies input indirectly through the program.

[0145] Such computation can be used in an electronic wallet environment.

[0146] The second computation involves one party, A that uses A's own resources where A supplies the partially encrypted abstract computing machine, the partially encrypted initial state, and any resources the abstract computing machine interacts with during its computation. In all three of those computations, A may also choose to supply some additional data with the abstract computing machine, that will allow parts of it to become re-encrypted under new encryption keys. Such encrypted computations can be used by users who wish to prevent “eavesdropping” on ongoing computation.

[0147] The third computation involves at least two parties A and B, where B wishes to execute a computation using A's data such that:

[0148] 1. A supplies B with a conventional program, expressed in a conventional programming language, part of which executes a computation of a partially encrypted abstract computing machine, ƒ, expressed using polynomial, where a partially encrypted initial state is given by A (either separately or along with the program), and

[0149] 2. A supplies B with the input “requested” by ƒ indirectly through the program sent to B by A, depending on the variant abstract computing machine A decides to use, and whether or not A decides to let its program allocate resources.

[0150] Such encrypted computations can be used to enable off-line document release and online interactive document services.

[0151] The fourth computation involves at least two parties A and B, where B wishes to execute a computation using A's data such that:

[0152] 1. A supplies B with a conventional program, expressed in a conventional programming language, part of which executes a computation of a partially encrypted abstract computing machine, ƒ, expressed using polynomials or state transition tables, where a partially encrypted initial state is given by A (either separately or along with the program), and

[0153] 2. A supplies B with input “requested” by f indirectly through the program sent to B by A in addition to input supplied by B, depending on the variant abstract computing machine A decides to use, and whether or not A decides to let its program allocate resources.

[0154] In one such example, A provides B with data content (e.g. a DVD movie) that B plays back. The decision process as to whether or not the DVD is to be played (e.g. based on release date) is based on an encrypted computation.

[0155] The present invention provides a method and apparatus for using a polynomial permutation as an asymmetric secret key cryptosystem in constructing encrypted programs. The cryptosystem is based on the symbolic function composition operation, and the fact that decomposing certain types of multivariate polynomials over a field is an NP-hard problem. See M. Dickerson, “The Functional Decomposition of Polynomials”, Ph.D. Thesis, Cornell University, 1989, the contents of which are incorporated herein by reference.

[0156] The relevant problem upon which the cryptosystem of the present invention is based is described herein as a special non-deterministic case of the so-called “General Decomposition Problem” for polynomials. Preliminary cryptanalysis suggests that it may offer very good cryptographic-protection of the abstract state machine itself. The only currently known (cryptographical) vulnerability is statistical analysis of input and output as the computation progresses. Only the ciphertext itself appears to be vulnerable to such analysis. The partially encrypted polynomial representation itself has no known vulnerabilities

[0157] As a basis for the rest of the description provided herein, the process of representing abstract computing machines using polynomials is described herein. A Mealy machine is a six-tuple M=(Q,Σ,Δ,δ,λ,q₀), where Q is the set of states, Σ is the input alphabet, Δ is the output alphabet, δ:Q×Σ→Q is the state transition function, λ:Q×Σ→Δ is the output function, and q₀ is the initial state.

[0158] A Mealy machine M is converted to a polynomial mapping by augmenting the definition to provide what is effectively a halting state. Thereafter, δ and λ are interpolated, using their definitions to provide interpolation data. The result is a multivariate polynomial mapping that can be iterated with input at each iteration to do the same computation as the machine M. The initial state is specified as a vector of the form ({right arrow over (x)}(0),{right arrow over (y)}(0),{right arrow over (z)}(0)), where {right arrow over (x)}(0) is the actual initial state of the Mealy machine M,{right arrow over (y)}(0) is the initial input, and {right arrow over (z)}(0) the initial output. $\begin{matrix} \left( {{{\overset{\sim}{\delta}}_{1}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)},\ldots \quad,{{\overset{\sim}{\delta}}_{S}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},{{\overset{\sim}{\lambda}}_{1}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},\ldots \quad,{{\overset{\sim}{\lambda}}_{O}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},{\overset{\rightarrow}{y}\left( {n + 1} \right)}} \right)}.} \right. & (1) \end{matrix}$

[0159] The computation is executed by iterating the mapping given in equation 1. This gives the relations: $\begin{matrix} {{\overset{\rightarrow}{x}(n)} = \left\{ \begin{matrix} {{\overset{\sim}{\delta}\left( {{\overset{\rightarrow}{x}\left( {n - 1} \right)},{\overset{\rightarrow}{y}\left( {n - 1} \right)}} \right)},{{{for}\quad n} > 0}} \\ {{{given}\quad {for}\quad n} = 0} \end{matrix} \right.} & (2) \\ {{\overset{\rightarrow}{z}(n)} = \left\{ \begin{matrix} {{\overset{\sim}{\lambda}\left( {{\overset{\rightarrow}{x}\left( {n - 1} \right)},{\overset{\rightarrow}{y}\left( {n - 1} \right)}} \right)},{{{for}\quad n} > 0}} \\ {{{given}\quad {for}\quad n} = 0} \end{matrix} \right.} & (3) \\ {{{\overset{\rightarrow}{y}(n)}\quad {is}\quad {given}\quad {for}\quad n} \geq 0.} & (4) \end{matrix}$

[0160] The class of automata presented in Blum requires modifications for it to be of use in expressing automata as polynomial mappings. The modifications are as follows:

[0161] 1. Comparison nodes have their greater-than-or-equal-to-zero relation replaced by a set membership relation, which is actually expressible as a polynomial over a finite field consisting of the integers modulo a prime numbers p.

[0162] 2. Computation and comparison nodes may be mixed.

[0163] 3. Output nodes are required to do computations (to avoid undue key exposure).

[0164] 4. There is one final node at which all halting computations must halt.

[0165] According to the present invention, modified Blum-Shub-Smale machines (hereinafter referred to as “BSS' machines”) operate over a finite field Z_(N) for a fixed prime number N. Such a machine includes (1) a state space Z_(N) ^(S), (2) an output space Z_(N) ^(O), (3) an input space Z_(N) ^(I), and (4) a directed graph with p numbered nodes; where S, O, and I are positive integers. The set {overscore (S)}={0, . . . ,p−1}×Z_(N) ^(S)×Z_(N) ^(O)×Z_(N) ^(I) is called the full state space of the Blum-Shub-Smale-like machine. The first component is the node number, the next S components are the automaton's internal work space, the O components after that, the output, and lastly, the I input components. The graph of the automaton has two main types of node variants:

[0166] 1. normal nodes, which must have at least one and at most p outgoing edges, and may have incoming edges; and

[0167] 2. the halting node, which can only have incoming edges, and one out-going edge pointing to itself.

[0168] The nodes may also do one or more of the following:

[0169] 1. compute one or more relations of the type ∈K⊂Z_(N)−{0} in order to select one of a list of possible outgoing edges for that node, in order to select the next node to be used in the computation;

[0170] 2. compute output to the output vector;

[0171] 3. assimilate input in the input vector; and

[0172] 4. carry out a computation with existing information from the state vector and the input vector.

[0173] Such an automaton is transformed to a polynomial mapping

H:{0, . . . ,p-1}×Z _(N) ^(S) ×Z _(N) ^(O) ×Z _(N) ^(I)→{0, . . . ,p− 1}×Z _(N) ^(S) ×Z _(N) ^(O) ×Z _(N) ^(I)

[0174] called its computing endomorphism. H is of the form: $\left( {{\beta \left( {n,{\chi \left( \overset{\rightarrow}{x} \right)}} \right)},{\sum\limits_{i = 0}^{p - 1}\quad {{a_{i}(n)}{g_{i}\left( \overset{\rightarrow}{x} \right)}}}} \right).$

[0175] Where a_(i)(n) “chooses” the correct g_(i) mapping to apply on the internal work space and output depending on which node the computation has reached. The next-node function β(n,{right arrow over (x)}) computes at which node the next computation step will take place. In this manner the automaton moves through its graph as though it were following a flow-chart.

[0176] Because the set {0, . . . ,p−1} must be a subset of Z_(N), it is possible to denote the node number by x₁, the internal state components by x₂, . . . ,x_(S+1), the output components by x_(S+2), . . . ,x_(S+O+1), and the input components by x_(S+O+2), . . . ,x_(S+O+I+1). The components may or may not be in this order in any given embodiment. The components are hereafter assumed to be in this order to simplify notation. Then the computing endomorphism simply operates on {right arrow over (x)}, and is essentially a mapping H:Z_(p) ^(1+S+O+I)→Z_(p) ^(1+S+O+I). This notation will henceforth be used, as it seems to be better with respect to the BSS'machines.

[0177] The use of univariate polynomials in encryption will now be discussed. Let m+n pairs (r_(i)s_(i)) of mutually inverse permutations permuting the integers modulo N, be given such that they are expressed as univariate polynomials. There may or may not be equal pairs (r_(i),s_(i)) of mutually inverse permutations. Some pairs may or may not be the identity mappings (that is, they do no encryption/decryption). Let the r_(i)s denote the encryption keys, and s_(i)s the decryption keys. Encryption of a polynomial mapping

(ƒ₁(x ₁ , . . . ,x _(m)), . . . ,ƒ_(n)(x ₁, ..., x_(m)))

[0178] over the integers modulo N is done by composition, resulting in the encrypted mapping:

(r ₁(ƒ₁(s_(n+1)(x₁), . . . , s_(n+m)(x _(m)))), . . . , r_(n)(ƒ_(n)(s _(n+1)(x ₁), . . . , s_(n+m)(x _(m))))).  (5)

[0179] This mapping will effectively compute ƒ on data partially encrypted with the keys r_(n+1), . . . ,r_(n+m). It is then possible to decrypt the result by applying s₁, . . . , s_(n) to the individual components. The simplest option is to set all pairs (r_(i),s₁) to some chosen pair (r,s). It is fully possible, however, to select individual encryption keys for each variable and function component. Note: to limit the size of the polynomials, and increase computational efficiency, the composition method employed by the invention exploits the fact that exponents greater than N−1 may be reduced in steps of N−1 until the exponent is less than N and greater-than-or-equal-to 0 (zero). This is done during the computation of the symbolic composition, so that no polynomial ever has any variable raised to a power higher than N−1.

[0180] In order to apply this encryption system to the polynomial mapping representing a Mealy machine, some restrictions must be placed on the selection of key pairs (r_(i),s_(i)). Recalling the form of the polynomial representation of a Mealy machine given in equation (1), it is clear that there are S+I variables, and S+O function components. Since the S first function components are always fed back into the S first variables, it becomes necessary to require (r_(i),s_(i))=(r_(S+O+i),s_(S+O+i)) for all 1≦i≦S. It is assumed that {right arrow over (y)}(n) has I components. In order to simplify subsequent notation, the partially encrypted version of the polynomial representation of an abstract state machine is written (E_(r,s)∘H), where H is the plaintext representation of the state machine. The symbol ∘ usually denotes functional composition, such that (ƒ∘g)(x)=ƒ(g(x)). The resulting general expression for this encryption system applied to H is then: $\begin{matrix} \begin{matrix} {{\left( {E_{r,s} \circ H} \right)\left( {{\overset{\rightarrow}{x}\left( {n + 1} \right)},{\overset{\rightarrow}{z}\left( {n + 1} \right)}} \right)} = \quad {r_{1}\left( {\delta_{1}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {{\quad \left. {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + I}\left( {y_{I}(n)} \right)}} \right)},\ldots \quad,} \\ {\quad {r_{S}\left( {\delta_{S}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {{\quad \left. {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + I}\left( {y_{I}(n)} \right)}} \right)},\ldots \quad,} \\ {\quad {r_{S + 1}\left( {\lambda_{1}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {{\quad \left. {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + I}\left( {y_{I}(n)} \right)}} \right)},\ldots \quad,} \\ {\quad {r_{S + O}\left( {\lambda_{1}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {\left. {\quad \left. {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + I}\left( {y_{I}(n)} \right)}} \right)} \right),} \end{matrix} & (6) \end{matrix}$

[0181] Although this encryption system protects the computation of the state machine from the platform it runs on, that does not preclude the possibility of the partially encrypted state machine sharing one or more encryption/decryption key pairs with the platform. This is why also the input components in equation (6) are displayed as (partially) encrypted.

[0182] For a BSS' machine there will effectively be 1+S+O mappings, and 1+S+O+I variables. Only 1+S+I variables are used in the mappings. Also, similar to the partial encryption of the polynomial representation of a Mealy machine, the choice of mappings is restricted by the fact that output from the first 1+S mapping components is fed into the first 1+S variables for the state space at the next computation step. Thus, (r_(1+S+O+i),s_(1+S+O+i))=(r_(i),s_(i)) for 1≦i≦S+1. Thus, the resulting expression for the encrypted machine is of the form: $\begin{matrix} \begin{matrix} {{\overset{\rightarrow}{x}\left( {n + 1} \right)} = \quad {\left( {E_{r,s} \circ H} \right)\left( {\overset{\rightarrow}{x}(n)} \right)}} \\ {= \quad {r_{1}\left( {{H_{1}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{1 + S}\left( x_{1 + S} \right)}} \right)},} \right.}} \\ {\quad {{s_{1 + S + O + S + O + 2}\left( {x_{S + O + 2}(n)} \right)},\ldots \quad,}} \\ {\quad {{s_{1 + S + O + S + O + I + 1}\left( {x_{S + O + I + 1}(n)} \right)},\ldots \quad,}} \\ {\quad {r_{1 + S + O}\left( {{H_{1 + S + O}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{1 + S}\left( x_{1 + S} \right)}} \right)},} \right.}} \\ {\quad {{s_{1 + S + O + S + O + 2}\left( {x_{S + O + 2}(n)} \right)},\ldots \quad,}} \\ \left. {\quad \left. {s_{1 + S + O + S + O + I + 1}\left( {x_{S + O + I + 1}(n)} \right)} \right)} \right) \end{matrix} & (7) \end{matrix}$

[0183] Note, in one embodiment of the present invention, at least one output component is chosen to be unencrypted. In that embodiment, the encryption function r_(i) is the identity mapping x, and is not applied to the component. Similarly, variables that do not need decrypting use the identity mapping x as decryption function s_(j).

[0184] The encryption system of the present invention is strengthened by the fact that it effectively includes a special type of non-linear equation system with an integer solution, half of whose variables remain undetermined by any equation. Moreover, the present invention protects the process of composing polynomials to produce a cryptosystem.

[0185] It is possible to re-encrypt a mapping E_(r,s) ∘ƒ partially encrypted with univariate polynomials, such that:

[0186] 1. None of the old encryption keys are revealed;

[0187] 2. None of the new encryption keys are revealed;

[0188] 3. The plaintext mappingf is not revealed; and

[0189] 4. None of the encryption keys protecting the new encryption keys are revealed.

[0190] Let ƒ be a mapping with n functional components expressed as polynomials in m variables. Assume ƒ is partially encrypted using the key pairs (r₁,s₁), . . . ,(r_(n+m),s_(n+m)) such that E_(r,s)∘ƒ may be written in the form given in equation (5).

[0191] Re-encryption is achieved by:

[0192] 1. selecting a new set of key pairs (r₁ ^(l),s₁ ^(l)), . . . , (r_(n+m) ^(l),s_(n+m) ^(l));

[0193] 2. for every 1≦i≦n+m, symbolically composing r₁ ^(l) with s_(i) to generate r_(i) ^(l)(s_(i)(x));

[0194] 3. for every 1≦i≦n+m, symbolically composing r_(i) with s_(i) ^(l) to generate r_(i)(s_(i) ^(l)(x));

[0195] 4. for every variable x_(i), n<i≦n+m, symbolically substituting x_(i) with r_(i)(s_(i) ^(l)(x)); and

[0196] 5. for every function component ƒ_(i), 1≦i≦n, symbolically composing r_(i) ^(l)(s_(i)(x)) with r_(i)(ƒ_(i)(. . .)).

[0197] The re-encryption of a function component ƒ_(i) is possible based on the following equation: $\begin{matrix} \left. {{\left( {r_{i}^{\prime} \circ s_{i}} \right) \circ {r_{i}\left( {f_{i}\left( {{s_{n + 1}\left( {r_{n + 1}\left( {s_{n + 1}^{\prime}\left( x_{1} \right)} \right)} \right)},\ldots \quad,{s_{n + m}\left( {r_{n + m}\left( {s_{n + m}^{\prime}\left( x_{m} \right)} \right)} \right)}} \right)} \right)}} = {{r_{i}^{\prime}\left( {s_{i}\left( {r_{i}\left( {f_{i}\left( {{s_{n + 1}\left( {r_{n + 1}\left( {s_{n + 1}^{\prime}\left( x_{1} \right)} \right)} \right)},\ldots \quad,{s_{n + m}\left( {r_{n + m}\left( {s_{n + m}^{\prime}\left( x_{m} \right)} \right)} \right)}} \right)} \right)} \right)} \right)} = {r_{i}^{\prime}\left( {{f_{i}{s_{n + 1}^{\prime}\left( x_{1} \right)}},\ldots \quad,{s_{n + m}^{\prime}\left( x_{m} \right)}} \right)}}} \right) & (8) \end{matrix}$

[0198] so the result is ƒ partially encrypted with the keys (r₁ ^(l),s₁ ^(l)), . . . ,(r_(n+m) ^(l),s_(n+m) ^(l)). Since all (r_(i),s_(i)) and (r_(i) ^(l),s_(i) ^(l)) are initially secrets, the compositions r_(i) ^(l)∘s_(i) and r_(i)∘s_(i) ^(l) are effectively encrypted data for purposes of cryptanalysis.

[0199] Encryption using multivariate polynomials is similar to encryption with univariate polynomials, except that tuples or blocks of variables may be encrypted and/or decrypted simultaneously. In the most general case, let ƒ be a mapping with n components that is applied to m variables. Select k triples (c_(i),r_(i),s_(i)) satisfying:

[0200] 1. Every c_(i) is a positive integer;

[0201] 2. There is an l<k such that Σhd i=1 ^(l) c_(i) equals the number of components, n, in the mapping to be partially encrypted, and Σ_(i−l+1) ^(k) c_(i) equals the number of variables, m, used by the mapping;

[0202] 3. Every r_(i) is a permutation of c_(i)-tuples of variables, and s_(i) is its inverse, thus _(i),s_(i):Z_(p) ^(c)-Z_(p) ^(c); and

[0203] 4. Every r_(i) and s_(i) is expressed as a polynomial mapping, such that if c_(i)>1, then r_(i) and s_(i) are multivariate polynomial mappings with functional (polynomial) components (r_(i,1), . . . ,r_(i,c) _(i) ) and (s_(i,1), . . . ,s_(i,c) _(l) ), respectively.

[0204] The r_(i)s denote encryption keys. The s_(i)s denote decryption keys. There may or may not be equal triples. Some permutations r_(i) and s_(i) may be selected to be the identity mapping (thus encryption and/or decryption are not performed).

[0205] Illustratively, the n functional components and m variables are assembled in one “tuple” ƒ₁, . . . ,ƒ_(n),x₁, . . . ,x_(m). This is then partitioned into blocks as shown in the equation below:

ƒ₁, . . ., η_(c) ₁ , . . . , η_(n−c) _(l+1) , . . , ƒ_(n), x₁, . . . , x_(c) _(l+1) , . . . , x_(m−c) _(k) ₊₁, . . . , x_(m),

[0206] where ƒ₁, . . . ,ƒ_(n) is Σ_(i=1) ^(l) c_(i)=n components and x₁, . . . , x_(m) is Σ_(i=1+1) ^(k) c_(i)=m variables.

[0207] To achieve partial encryption, the keys are then applied to blocks as shown in the equation below:

r ₁ ={ƒ ₁, . . . , ƒ_(c) _(l) }r _(l) {ƒ _(n−c) _(l) ₊₁, . . . , ƒ_(n) }s _(l+1) ={x ₁ , . . . , x _(c) ₊₁ }s _(k) ={x _(m−c) _(k) ₊₁, . . . , x_(m)}.

[0208] This general case can be reduced to the univariate case by setting c₁=1 for all 1≦i≦m+n. The partial encryption of

ƒ({right arrow over (x)})=(ƒ₁(x₁, . . . , x_(m)), . . . ,ƒ_(n)(x₁, . . . ,x_(m)))

[0209] over the integers modulo N is done by functional composition, resulting in the encrypted mapping: $\begin{matrix} \left. \left( {{r_{1}\left( {{f_{1}\left( {{s_{l + 1}\left( {x_{1},\ldots \quad,x_{c_{l + 1}}} \right)},\ldots \quad,{s_{k}\left( {x_{m - c_{k} + 1},\ldots \quad,x_{m}} \right)}} \right)},\ldots \quad,{f_{c_{1}}\left( {{s_{l + 1}\left( {x_{1},\ldots \quad,x_{c_{l}}} \right)},\ldots \quad,\quad {s_{k}\left( {x_{m - c_{k} + 1},\ldots \quad,x_{m}} \right)}} \right)}} \right)},\ldots \quad,{{{r_{1}\left( {{f_{n - c_{l} + 1}\left( {{s_{l + 1}\left( {x_{1},\ldots \quad,x_{c_{l + 1}}} \right)},\ldots \quad,{s_{k}\left( {x_{m - c_{k} + 1},\ldots \quad,x_{m}} \right)}} \right)},\ldots \quad,} \right.}\quad}{f_{n}\left( {{s_{l + 1}\left( {x_{1},\ldots \quad,x_{c_{1}}} \right)},{\ldots \quad {s_{k}\left( {x_{m - c_{k} + 1},\ldots \quad,x_{m}} \right)}}} \right)}}} \right) \right) & (9) \end{matrix}$

[0210] Note that every r_(i) produces a tuple with c_(l) components, so in all, the partially encrypted mapping should have as many polynomial components as does ƒ. To simplify the above notation, denote the tuple x₁, . . . ,x_(c) _(l+1) by {right arrow over (w)}₁, the tuple x_(c) _(l+1) _(⁺¹) , . . . ,x_(c) _(l+1) _(^(c)) _(l+2) by {right arrow over (w)}₂, and so on up to x_(m−c) _(k) _(⁺¹) , . . . , x_(m) by {right arrow over (w)}_(k−l). Denote the function component tuple ƒ₁, . . . ,ƒ_(c) _(l) by v₁, the tuple ƒ_(c) _(l) _(⁺¹) , . . . , ƒ_(c) _(l) _(+c) ₂ by v₂, and so on up to ƒ_(n−c) _(l) _(⁺¹) , . . . , ƒ_(n) by v_(l). This notation is illustrated in the equation below:

ƒ₁, . . . , ƒ_(c), . . . , ƒ_(n),x₁, . . ., x_(c) _(l+1) , . . . , x_(m−c) _(k) ₊₁, . . . , x_(m).

[0211] Using this notation, equation (9) may be rewritten as:

(r ₁(v ₁(s _(l+1)({right arrow over (w)}₁), . . . , s _(k)({right arrow over (w)}_(k−l)))), . . . , r _(l)(v _(l)(s _(l+1)({right arrow over (w)} ₁), . . . , s _(k)({right arrow over (w)} _(k−l))))).  (10)

[0212] When a polynomial representation, H, of a Mealy machine is to be encrypted using multivariate polynomials, there are some constraints on the selection of encryption keys. As in the univariate case, there are S function components of H, which are fed back into variables, and O function components which are not. This will only work as intended if (c_(i),r_(i),s_(i))=(c_(l+i),r_(l+i),s_(l+i)) for all 1≦i≦{overscore (1)}, where {overscore (1)} is such that Σ_(j) ^({overscore (i)})c_(j)≧S. In the following set D=Σ_(j=1) ^({overscore (i)})c_(j). In any case, D may not exceed the number of variables, so in the case where there are more function components than variables, there may be function components free of such restrictions when deciding upon triples for encryption. Thus, the first {overscore (1)} partially encrypted blocks of H's components must use the same key pairs as the first {overscore (1)} partially decrypted blocks of H's variables. Recall that H's variables are written {right arrow over (x)}(n), {right arrow over (y)}(n), and that {right arrow over (x)} is the state of the Mealy machine. Therefore the first {overscore (1)} vectors/blocks {right arrow over (w)}_(i)(n) will represent {right arrow over (x)}(n) and possibly a little of {right arrow over (y)}(n), and the remaining vectors/blocks will represent the rest of {right arrow over (y)}(n)—the input to the Mealy machine. The partially encrypted version of H, written E_(r,s)∘H, may for the case D=S be written as: $\begin{matrix} \begin{matrix} {{\overset{\rightarrow}{x}\left( {n + 1} \right)},{{\overset{\rightarrow}{z}\left( {n + 1} \right)} = \quad {\left( {E_{r,s} \circ H} \right)\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)}}} \\ {= \quad \left( {{r_{1}\left( {{\overset{\sim}{\delta}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)} \right.},} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{\delta_{c_{1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right),\ldots \quad,} \\ {\quad \left( {r_{\overset{\sim}{i}}\left( {{\delta_{D - c_{\overset{\sim}{i}} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\delta}}_{D}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{\overset{\sim}{i} + 1}\left( {{{\overset{\sim}{\lambda}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\lambda}}_{c_{\overset{\sim}{i} + 1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. {\quad \left. {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right)} \right),\ldots \quad,} \\ {\quad {r_{l}\left( {{{\overset{\sim}{\lambda}}_{0 - c_{i} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\lambda}}_{O}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ \left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right) \end{matrix} & (11) \end{matrix}$

[0213] For the case D>S, the partially encrypted version of H, E_(r,s)∘H is defined as: $\begin{matrix} \begin{matrix} {{E_{r,s}\left( {{\overset{\rightarrow}{x}\left( {n + 1} \right)},{\overset{\rightarrow}{z}\left( {n + 1} \right)}} \right)} = \quad {\left( {E_{r,s} \circ H} \right)\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)}} \\ {= \quad \left( {{r_{1}\left( {{\overset{\sim}{\delta}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)} \right.},} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{\delta_{c_{1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right),\ldots \quad,} \\ {\quad \left( {r_{\overset{\sim}{i}}\left( {{\delta_{D - c_{\overset{\sim}{i}} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\delta}}_{S}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{\overset{\sim}{i} + 1}\left( {{{\overset{\sim}{\lambda}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{\overset{\sim}{\delta}}_{D - S}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},} \right.}} \\ {\left. {\quad \left. {s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)} \right)} \right),\ldots \quad,} \\ {\quad {r_{l}\left( {{{\overset{\sim}{\lambda}}_{0 - c_{i} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\lambda}}_{O}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ \left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right) \end{matrix} & (12) \end{matrix}$

[0214] The mapping E_(r,s)∘H effectively consists of polynomials q_(i):Z_(p) ^(S+I-Z) _(p).

[0215] For the BSS' machines, the resulting expression resembles the above expressions, but is slightly simpler. There is one variable vector {right arrow over (x)}(n) with 1+S+O+I components. H has 1+S+O components. As with the Mealy machine, the triples (c_(i),r_(i),s_(i)) must equal (c_(l+i),r_(l+i),s_(l+i)) for 1≦i≦{overscore (1)}, where {overscore (1)} is such Σ_(j−1) ^({overscore (i)})c_(j)≧1+S and Σ_(j=1) ^({overscore (i)}−1) c_(j)≦1+S. Set D=Σ_(j=1) ^({overscore (i)})c_(j). In any case, D may not exceed the number of variables, so in the case where there are more function components than variables, there may be function components free of such restrictions when deciding upon triples for encryption. The partially encrypted state and output data after n applications of H is defined as {right arrow over (w)}

({right arrow over (w)} _(l)(n), . . . , {right arrow over (w)} _(k−l)(n)).

[0216] The partially encrypted version of H for a BSS' machine is defined as: $\begin{matrix} \begin{matrix} {{\overset{\rightarrow}{x}\left( {n + 1} \right)} = \quad {\left( {E_{r,s} \circ H} \right)\left( {\overset{\rightarrow}{x}(n)} \right.}} \\ {\quad \left( {r_{1}\left( {{H_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {H_{c_{1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i}}(n)} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),} \\ {\quad {r_{l}\left( {H_{1 + S + O - c_{l + 1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i}}(n)} \right)},} \right.} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),} \\ {\quad {H_{1 + S + O}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i}}(n)} \right)},} \right.}} \\ \left. \left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right) \right) \end{matrix} & (13) \end{matrix}$

[0217] This cryptosystem appears to be based on an NP-hard problem—that of decomposing the encrypted polynomial mapping to obtain the obscured polynomials doing the actual computation. Also, as in the univariate case, solution of the problem requires solving a system of non-linear integer equations, where there are half as many equations as there are variables.

[0218] It is possible to re-encrypt a mapping E_(r,s)∘ƒ partially encrypted with multivariate polynomials, such that:

[0219] 1. None of the old encryption keys are revealed;

[0220] 2. None of the new encryption keys are revealed;

[0221] 3. The plaintext mappingf is not revealed; and

[0222] 4. None of the encryption keys protecting the new encryption keys are revealed.

[0223] Let ƒbe a mapping with n functional components expressed as polynomials in m variables. Assume ƒ is partially encrypted using the key triples (c₁,r₁,s₁), . . . ,(c_(k),r_(k),s_(k)) as described above such that E_(r,s)∘ƒ may be written in the form given in equation (9). Re-encryption is achieved by:

[0224] 1. selecting a new set of key triples (c₁,r₁ ^(l),s₁ ^(l)), . . . ,(c_(k),r_(k) ^(L),s_(k) ^(L)), such that block sizes are preserved;

[0225] 2. for every 1≦i≦k symbolically composing r_(i) ^(L) with s_(i) to generate r_(i) ^(L)(S_(i)(v));

[0226] 3. for every 1≦i≦k symbolically composing r_(i) with s_(i) ^(L) to generate r_(i)(s_(i) ^(L)({right arrow over (w)}_(i−1)));

[0227] 4. for every block of variables {right arrow over (w)}_(i−l),l<i≦k, symbolically substituting {right arrow over (w)}_(i−l) with r_(i)(s_(i) ^(L)({right arrow over (w)}_(i−l))); and

[0228] 5. for every block of function components v_(i), 1≦i≦l, symbolically composing r_(i) ^(L)(s_(i)( . . . )) with r_(i)(ƒ_(i)( . . . )).

[0229] The re-encryption of a function component ƒ_(i) described herein according to the following equation: $\begin{matrix} {{\left( {r_{i}^{\prime} \circ s_{i}} \right) \circ {r_{i}\left( {f_{i}\left( {{s_{l + 1}\left( {r_{l + 1}\left( {s_{l + 1}^{\prime}\left( {\overset{\rightarrow}{w}}_{1} \right)} \right)} \right)},\ldots \quad,{s_{k}\left( {r_{k}\left( {s_{k}^{\prime}\left( {\overset{\rightarrow}{w}}_{k - l} \right)} \right)} \right)}} \right)} \right)}} = {{r_{i}^{\prime}\left( {s_{i}\left( {r_{i}\left( {f_{i}\left( {{s_{l + 1}\left( {r_{l + 1}\left( {s_{l + 1}^{\prime}\left( {\overset{\rightarrow}{w}}_{1} \right)} \right)} \right)},\ldots \quad,{s_{k}\left( {r_{k}\left( {s_{k}^{\prime}\left( {\overset{\rightarrow}{w}}_{k - l} \right)} \right)} \right)}} \right)} \right)} \right)} \right)} = {r_{i}^{\prime}\left( {f_{i}\left( {{s_{l + 1}^{\prime}\left( {\overset{\rightarrow}{w}}_{1} \right)},\ldots \quad,{s_{k}^{\prime}\left( {\overset{\rightarrow}{w}}_{k - l} \right)}} \right)} \right)}}} & (14) \end{matrix}$

[0230] so the result is ƒ partially encrypted with the keys (c₁r₁ ^(L),s₁ ^(L)), . . . ,(c_(k),r_(k) ^(L),s_(k) ^(L)). Note that for the multivariate case, proper re-encryption is possible only if the new key triples partition f and its variables into the same blocks as the original key triples did. Since all (c_(i),r_(l),s_(i)) and (c_(i),r_(i) ^(L),s_(i) ^(L)) are initially secrets, the compositions r_(i) ^(L)∘s_(i) and r_(i)∘s_(i) ^(L) are effectively encrypted data for purposes of cryptanalysis. It is important to note that equation (14) includes three instances of the use of the identity operator. In applying s_(i)(r_(i)( . . . )), the operators s and r cancel and could, therefore, be replaced by the identity operator.

[0231] In order for the polynomial representation of Mealy machines, and the BSS' machines to be of significant usefulness, proper host support is required. Such support is called a Turing platform. This support is required for the subsequently described register machine.

[0232] Call the host

. A Turing platform T includes:

[0233] a very simple, slightly modified Turing machine with unbounded, linearly addressed storage, each storage unit being called a cell; and with a so-called finite control with position in the storage;

[0234] an output register writeable by the finite control, which holds one storage unit;

[0235] an input register readable by the finite control, which holds one storage unit, and one of three possible movement directions (left, stand still, right);

[0236] an output register writeable by

, which is part of the input of the supported state machine; and

[0237] an input register readable by

, which is part of the output of the supported state machine.

[0238] A complete computation step for a Mealy machine or a BSS' machine M supported by a Turing platform proceeds according the diagram of FIG. 35 in which the numbered steps correspond to:

[0239] 1. T reads the cell at which its finite control is placed,

[0240] 2. T writes the cell to the input of M,

[0241] 3.

writes to the input of M,

[0242] 4. M computes the next state,

[0243] 5. M computes output and writes it to the input of T.

[0244] 6. M computes output and writes it to the input of

,

[0245] 7. M computes the direction of movement, and writes it to T.

[0246] 8. T reads from its input register,

[0247] 9. T writes the input to the cell,

[0248] 10. T moves left, right, or stands still, if possible.

[0249] Use of a Turing platform to support the computations of Mealy and BSS' machines allows them to do completely general computations, if necessary, effectively making them equivalent to Turing machines in computational power.

[0250] The basic structure of the method and apparatus of the present invention implements:

[0251] 1. preprocessing of a Mealy machines' mappings in preparation for either transformation to polynomial mappings or direct encryption,

[0252] 2. transformation of Mealy machines' mappings to polynomial mappings,

[0253] 3. a BSS' machine,

[0254] 4. transformation of the mappings of BSS' machines to polynomial mappings,

[0255] 5. symbolic composition of mappings (including polynomial mappings) using their function tables,

[0256] 6. encryption of Mealy machines with finite controls, expressed as function tables, using composition of function tables,

[0257] 7. encryption and decryption of polynomial mappings and data using univariate polynomials,

[0258] 8. re-encryption of mappings partially encrypted with univariate polynomial mappings,

[0259] 9. encryption and decryption of polynomial mappings and data using multivariate polynomials,

[0260] 10. re-encryption of mappings partially encrypted with multivariate polynomial mappings,

[0261] 11. a specialization of encryption and decryption of polynomial mappings with multivariate polynomials using two-variable polynomials,

[0262] 12. a device for supporting polynomial-based computation,

[0263] 13. a register machine well adapted to encryption by the cryptosystems presented herein, and

[0264] 14. a system for parametrized multivariate encryption presented, will now be described in detail.

[0265] Using a modified notation as compared to above, a Mealy machine is a six-tuple M=(Q,Σ,Δ,δ,λ,q₀), where Q is the set of states, Σ the input alphabet, Δ the output alphabet, δ:D→Q the state transition function, λ:D→Δ the output function, and q₀ the initial state. The domain D of δ and λ is a possibly trivial subset of Q×Σ.

[0266] Prior to transformation, state machines are augmented, such that they halt in one particular state. This is necessary for Mealy machines and BSS' machines that are not intended for use with Turing platforms in their cryptographically enhanced form. The augmentation is also intended to partially obscure the workings of the machine by introducing redundant states and transitions, without affecting the machine's functionality during any error-free execution. Therefore, augmentation may be beneficial also for Mealy and BSS' machines intended for use with Turing platforms in their cryptographically enhanced form. The augmented machine will be called M′. The augmentation is carried out using the following steps:

[0267] If M does not have an output symbol B reserved as a “blank” symbol (i.e., a symbol indicating that there is no semantic content), add a new symbol B (which cannot equal any symbol in Δ) to the output alphabet Δ, setting Δ′=Δ∪{B}, otherwise set Δ′=Δ, and call B the previously reserved “blank” symbol (also referred to herein as the stopping state output symbol).

[0268] If M has a state q∈Q such that for all inputs σ∈Σ no pair (q,σ) is contained in D, then call the state q_(a) and define Q′=Q. If M has a state q∈Q such that for all inputs Σ∈Σ, δ(q,σ)=q, call the state q_(a), set λ(q,σ)=B for all inputs σ∈Σ, and define Q′=Q. Otherwise:

[0269] add a new state, such that Q′={q_(a)}∪Q,

[0270] for every node q≠q_(a) such that δ(q,σ)=q for all inputs σ∈Σ, set δ(q,σ)=q_(a) and λ(q,σ)=B for every σ∈Σ.

[0271] Q′ is the set of states of M′. The state q_(a) hereinafter is referred to as “the augmentation state”. M is the augmented Mealy machine.

[0272] The next step is to determine the number of elements in Q′ and Δ, and how they are to be represented using (possibly one-dimensional) vectors over the ring Z_(N) of integers modulo N. This step determines the least possible selectable N. If the Mealy machine is to be represented using polynomials, N must be a prime number. If the Mealy machine is to be represented using function tables, N does not have to be a prime number. When N has been selected, the elements of Q′ are given a representation in Z_(N) ^(S), S≧1 fixed. Similarly, the elements of Δ are represented by elements in Z_(N) ^(O), O≧1 fixed; and the elements of Σ are represented by elements in Z_(N) ^(I), I≧0 fixed. Thus, Q^(L) ⊂Z_(N) ^(S), Δ⊂Z_(N) ^(O), and Σ⊂Z_(N) ^(I).

[0273] Set Δ′=Δ. The next step can be done in four different ways:

[0274] 1. Nothing more is done to complete the state transition table of M′, and the undefined entries are marked as such. This requires an additional table with flags, each flag marking whether a corresponding entry in the state transition table is defined or not. This may only be done if the Mealy machine is represented using polynomials.

[0275] 2. If Q′ contains a number of states less than that representable within Z_(N) _(^(S)) , add dummy states to Q′, until it contains N^(S) states. If Σ contains a number of inputs less than that representable within Z_(N) _(^(I)) , add dummy input symbols to Σ' until it contains N^(I) symbols. If Δ′ contains a number of outputs less than that representable within Z_(N) _(^(O)) , add dummy output symbols to Δ′ until it contains N^(O) symbols. For each pair (q,σ)∉D, set δ′(q,σ)=q_(a) and λ′(q,σ)=B, where B is a fixed symbol chosen from the output alphabet.

[0276] 3. If Q∪{q_(a)} contains a number of states less than that representable within Z_(N) _(^(S)) , do the following until Q′ contains N^(S) states:

[0277] For a randomly chosen state q∈Q (alternatively the current Q′−{q_(a)}) add a state q′ to Q′.

[0278] For every input Σ∈Σ set δ′(q′,σ)=δ(q,σ).

[0279] Optionally, one may also for every pair (q,σ)∈Q′×Σ such that δ(q,σ)=q, randomly set δ′(q′,σ) to q or q′.

[0280] If Σ contains a number of inputs less than that representable within Z_(N) _(^(I)) , add dummy input symbols to Σ′ until it contains N^(I) symbols. If Δ′ contains a number of outputs less than that representable within Z_(N) _(^(O)) , add dummy output symbols to Δ′ until it contains N^(O) symbols. For each pair (q,σ)∉Q′×Σ, set δ′(q,σ) to a random q′∈Q′ and set λ′(q,σ) to a random symbol from Δ′.

[0281] 4. If Q′ contains a number of states less than that representable within Z_(N) _(^(S)) , add dummy states to Q′, until it contains N^(S) states. If Σ contains a number of inputs less than that representable within Z_(N) _(^(I)) , add dummy input symbols to Σ′ until it contains N^(I) symbols. If Δ′ contains a number of outputs less than that representable within Z_(N) _(^(O)) , add dummy output symbols to Δ′ until it contains N⁾ symbols. For each pair (q,σ)∉D, set δ′(q,σ) equal to a random q′∈Q′ and set λ′(q,σ) equal to a random symbol from the output alphabet.

[0282] Define the domain of M′ to be D′=Q′×Σ′. The resulting M′ should now be somewhat differently from M, yet still compute the same function as M.

[0283] Three optional additional steps may be carried out, provided the augmentation made use of methods 2-4 above. Each of the options is independent of the others, so that any embodiment may elect to employ one of, two of, or all of the three steps described below.

[0284] First, it is possible to permute some or all of the states without affecting the computation carried out by M′. When interchanging a state q with q′, δ′(q,σ) takes on the old value of δ′(q′,σ) for every σ∈Σ′, and vice-versa. Similarly, λ′(q,σ) takes on the old value of λ′(q′,σ) for every σ∈Σ′. The interchanges may be made one by one or may be entirely precomputed in the form of a permutation expressed using a function table.

[0285] Second, it is possible to permute part or all of the extended input alphabet Σ′. When interchanging a symbol σ with σ′, δ′(q,σ) takes on the old value of δ′(q,σ) for every q∈Q′ and vice-versa. Similarly, λ′(q,σ) takes on the old value of λ′(q,σ′) for every q∈Q′ and vice-versa. The interchanges may be made one by one or may be entirely precomputed in the form of a permutation expressed using a function table. These interchanges, however, must have corresponding interchanges in the output alphabet for any symbols used to represent state information. Changes must be made known to the host that is to execute the cryptographically enhanced Mealy machine if they affect inputs to be made by the host platform. Thus at some changes may have to be recorded during augmentation.

[0286] Third, it is possible to permute part or all of the extended output alphabet Δ′. When interchanging a symbol x with another symbol x′, every λ′(q,σ)=x takes on the value x′. Similarly every λ′(q,σ)=x′ takes on the value x. Similar restrictions apply to this operation as with the permutation of the extended input alphabet. Changes must be made known to the host that is to execute the cryptographically enhanced Mealy machine if they affect outputs to the remote host platform. Thus at some changes may have to be recorded during augmentation.

[0287] Note that x, x′, q, q′, σ, σ′, λ, λ′, and δ′ may or may not have vectorized representations. The act of permuting certain vector components of, say σ, is the same as selecting a subset of Σ′ which one intends to permute.

[0288] The next step is the specification of what will be called the full state vector of M. This vector is written:

({right arrow over (x)}(i), {right arrow over (z)}(i), {right arrow over (y)}(i))=(x₁(i), . . . , x_(S)(i), z₁(i), . . . , z_(O)(i), y₁(i), . . . , y₁(i)),

[0289] where {right arrow over (x)}(i) is a vector containing the state of the Mealy machine after i computation steps, {right arrow over (z)}(i) is a vector containing the output after i computation steps, and {right arrow over (y)}(i) is a vector containing the input given at the i^(th) computation step. This is a notational convenience, which is adapted to the subsequent descriptions of the cryptosystem(s).

[0290] In some embodiments where the Mealy machine is represented using polynomials,, the coefficients of the polynomials $\begin{matrix} {{a_{i}(x)} = {\left( {\prod\limits_{i \in Z_{N}}\quad \frac{x - k}{i - k}} \right)\quad {modN}}} & (15) \end{matrix}$

[0291] for i∈Z_(N) are precomputed and stored to improve efficiency. Note that henceforth, all computation is done modulo N.

[0292] It is possible to compute the polynomial mappings for M's represented with polynomials using interpolation as shown below: ${{\overset{\sim}{\delta}\left( {\overset{\rightarrow}{x},\overset{\rightarrow}{y}} \right)} = {\sum\limits_{{({\overset{\rightarrow}{i},\overset{\rightarrow}{j}})} \in D^{\prime}}\quad {{a_{i_{1}}\left( x_{1} \right)}\quad \cdots \quad {a_{i_{S}}\left( x_{S} \right)}{a_{j_{1}}\left( y_{1} \right)}\quad \cdots \quad {a_{j_{I}}\left( y_{I} \right)}{\delta^{\prime}\left( {\overset{\rightarrow}{x},\overset{\rightarrow}{y}} \right)}}}},{and}$ ${{\overset{\sim}{\lambda}\left( {\overset{\rightarrow}{x},\overset{\rightarrow}{y}} \right)} = {\sum\limits_{{({\overset{\rightarrow}{i},\overset{\rightarrow}{j}})} \in D^{\prime}}\quad {{a_{i_{1}}\left( x_{1} \right)}\quad \cdots \quad {a_{i_{S}}\left( x_{S} \right)}{a_{j_{1}}\left( y_{1} \right)}\quad \cdots \quad {a_{j_{I}}\left( y_{I} \right)}{\lambda^{\prime}\left( {\overset{\rightarrow}{x},\overset{\rightarrow}{y}} \right)}}}}\quad$

[0293] The resulting machine is called {overscore (M)}.

[0294] Given {overscore (M)}'s state after n state-transitions, {right arrow over (x)}(n), and the (n+1)^(st) input {right arrow over (y)}(n), the next state transition and output is computed by the mapping: $\begin{matrix} {{{\overset{\sim}{\delta}}_{1}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},\ldots \quad,{{\overset{\sim}{\delta}}_{s}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},{{\overset{\sim}{\lambda}}_{1}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},\ldots \quad,{{\overset{\sim}{\lambda}}_{s}\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)},} & (16) \end{matrix}$

[0295] The computation of M′ transformed is executed by iterating the mapping given in equation 16. This gives the relations (originally presented as equations (2)-(4)): $\begin{matrix} {{\overset{\rightarrow}{x}(n)} = \left\{ \begin{matrix} {{\overset{\sim}{\delta}\left( {{\overset{\rightarrow}{x}\left( {n - 1} \right)},{\overset{\rightarrow}{y}\left( {n - 1} \right)}} \right)},{{{for}\quad n} > 0}} \\ {{{given}\quad {for}\quad n} = 0} \end{matrix} \right.} & (17) \\ {{\overset{\rightarrow}{z}(n)} = \left\{ \begin{matrix} {{\overset{\sim}{\lambda}\left( {{\overset{\rightarrow}{x}\left( {n - 1} \right)},{\overset{\rightarrow}{y}\left( {n - 1} \right)}} \right)},{{{for}\quad n} > 0}} \\ {{{given}\quad {for}\quad n} = 0} \end{matrix} \right.} & (18) \\ {{{\overset{\rightarrow}{y}(n)}\quad {is}\quad {given}\quad {for}\quad n} \geq 0.} & (19) \end{matrix}$

[0296] The original machines defined by Blum, Shub, and Smale are defined over a ring R, each having:

[0297] a state space R^(S),

[0298] an output space R^(O),

[0299] an input space R^(I), and

[0300] a graph defining its computations,

[0301] where S, O, and I are positive integers. The graph of any machine has four node variants, numbered by type in the list below:

[0302] 1. Input node (node of type 1)

[0303] This node has one outgoing edge to the node numbered (n) and no incoming edges.

[0304] The number of the input node is n. Associated with this node is the injective input mapping I:R^(I)→R^(S). There is only one input node in any automaton over R.

[0305] 2. Output node (node of type 2)

[0306] These nodes have one incoming edge, and no outgoing edges. The computation of the automaton is finished when an output node is reached. Each of these nodes has an output mapping O_(n) :R^(S)→R^(O), where n is the number of the node in question.

[0307] 3. Computation node (node of type 3)

[0308] Each node of this type, numbered n, has one incoming and one out-going edge to node number β(n). Each such node has a mapping g_(n) :R^(S)→R^(S)·g_(n) is in general rational for R a field, and polynomial otherwise.

[0309] 4. Branch node (node of type 4)

[0310] Each node number n of this type has one incoming edge, and two outgoing edges to the nodes numbered β⁻(n) and β⁺(n). Each such node has a polynomial or rational (for R a field) mapping h_(n) :R^(S)→R. If R is an ordered ring, the automaton “moves” to node β⁻(n) when h_(n)({right arrow over (x)})<0, {right arrow over (x)}∈R^(S), and to node number β⁺(n) when h_(n)({right arrow over (x)})≧0. If R is not ordered, the automaton “moves” by convention to node β⁻(n) when h_(n)({right arrow over (x)})=0 and to node number β⁺(n) when h_(n)({right arrow over (x)})≠0.

[0311] A BSS' machine “moves” by executing the following steps until it halts at an output node or cannot execute another computation step for some reason:

[0312] 1. Compute the new state {right arrow over (x)}→g_(n)({right arrow over (x)}); and

[0313] 2. Change “location” from node number n to the next node, which is node number β(n), or one of β⁺(n) or β⁻(n) for a branch node.

[0314] The set of node numbers from 1 top can be written {overscore (N)}. A BSS machine thus has p nodes in all. The full state space of a Blum-Shub-Smale machine is then {overscore (N)}×R^(S). It is possible to express the computation of a Blum-Shub-Smale machine using only the “computing endomorphism”

H:{overscore (N)}×R ^(S) →{overscore (N)}×R ^(S).

[0315] The computing endomorphism generally has the form

H(n, {right arrow over (x)})=(β(n, χ({right arrow over (x)}), g _(n)({right arrow over (x)})),

[0316] where β is the next node function, computing the node the automaton is to “move” to when g_(n) has been applied to the state vector {right arrow over (x)}. The sign function, denoted by χ({right arrow over (x)}), is defined as follows: $\begin{matrix} {{\chi \left( \overset{\rightarrow}{x} \right)} = \left\{ {{\begin{matrix} {1,} & {x_{1} > 0} \\ {1,} & {x_{1} = 0} \\ {{- 1},} & {x_{1} < 0} \end{matrix}{The}\quad {next}\quad {node}\quad {function}\quad {\beta \left( {n,\sigma} \right)}}:\left. {\overset{\sim}{N} \times \left\{ {{- 1},0,1} \right\}}\rightarrow{\overset{\sim}{N}{is}\quad {in}\quad {general}} \right.} \right.} & (20) \\ {{\beta \left( {n,\sigma} \right)} = \left\{ \begin{matrix} {{\beta (n)},} & {n < {p\quad {and}\quad n\quad {is}\quad {not}\quad a\quad {branch}\quad {node}}} \\ {{\beta^{+}(n)},} & {{{n\quad {is}\quad a\quad {branch}\quad {node}\quad {and}\quad \sigma} = 0},1} \\ {{\beta^{-}(n)},} & {{n\quad {is}\quad a\quad {branch}\quad {node}\quad {and}\quad \sigma} = {- 1}} \end{matrix} \right.} & (21) \end{matrix}$

[0317] In an alternate embodiment, an additional constraint is added such that β(p) must equal p.

[0318] In order to understand the extent of the modifications introduced later on, it is necessary to have an overview of the general functional composition of the computing endomorphism H. Fix a Blum-Shub-Smale machine M over Z_(N) for a prime number N. When N is a prime number, Z_(N) is finite field. Let B={branch nodes in M}, and let a_(l)(x) be defined as $\begin{matrix} {{{a_{i}(x)} = {\left( {\prod\limits_{i \in \overset{\sim}{N}}\quad \frac{x - k}{i - k}} \right)\quad {modN}}},} & (22) \end{matrix}$

[0319] When y∈{overscore (N)}, a_(n)(y)=1 if and only if n=y, otherwise a_(n)(y)=0. For y∉{overscore (N)},a_(n)(y) produces nonsense. It is necessary to know that β(y,σ)=β(y, χ({right arrow over (x)})) is expressible as a polynomial, for which an expression can be found in the article by Blum, Shub, and Smale. When computing β(y,σ) for a node, σ=χ({right arrow over (x)}) must be evaluated. Over a finite field it is possible to express χ as a polynomial.

[0320] A mapping g(n, {right arrow over (x)})=g_(n)({right arrow over (x)}) does all “useful” computation in M. Let ${{g\left( {y,\overset{\rightarrow}{x}} \right)} = {\sum\limits_{n \in \overset{\_}{N}}\quad {{a_{n}(y)}{{g_{n}\left( \overset{\rightarrow}{x} \right)}.\quad {Genarally}}}}},{{g_{n}\left( \overset{\rightarrow}{x} \right)} = \left( {\frac{f_{n,1}\left( \overset{\rightarrow}{x} \right)}{q_{n,1}\left( \overset{\rightarrow}{x} \right)},\frac{f_{n,2}\left( \overset{\rightarrow}{x} \right)}{q_{n,2}\left( \overset{\rightarrow}{x} \right)},\frac{f_{n,3}\left( \overset{\rightarrow}{x} \right)}{q_{n,3}\left( \overset{\rightarrow}{x} \right)},\ldots} \right)},$

[0321] where ƒ_(n,l)({right arrow over (x)}) and q_(n,l)({right arrow over (x)}) are polynomials in general. If n is a computation node, ƒ_(n,l) is a polynomial in {right arrow over (x)} with its dimension bounded by the dim M, and degree bounded by deg M. If n is not a computation node, then q_(n,l)({right arrow over (x)})≡1 and p_(n) ^(l)({right arrow over (x)}) is identical to the l^(th) component of {right arrow over (x)} for all l. It is then possible to express g(n, x) as: $\begin{matrix} {{g_{n}\left( \overset{\rightarrow}{x} \right)} = {\left( {\frac{\sum\limits_{n \in \overset{\_}{N}}\quad {{a_{n}(y)}{f_{n,1}\left( \overset{\rightarrow}{x} \right)}}}{\sum\limits_{n \in \overset{\_}{N}}\quad {{a_{n}(y)}{q_{n,1}\left( \overset{\rightarrow}{x} \right)}}},\frac{\sum\limits_{n \in \overset{\_}{N}}\quad {{a_{n}(y)}{f_{n,2}\left( \overset{\rightarrow}{x} \right)}}}{\sum\limits_{n \in \overset{\_}{N}}\quad {{a_{n}(y)}{q_{n,2}\left( \overset{\rightarrow}{x} \right)}}},\ldots} \right).}} & (23) \end{matrix}$

[0322] This gives the explicit expression for the computing endomorphism for M in the form

H(n, {right arrow over (x)})=(β(n, χ({right arrow over (x)})), g(n, {right arrow over (x)})).  (24)

[0323] At this stage, H is at best piecewise polynomial. In order to encrypt such a machine with polynomial mappings, it must be modified.

[0324] For adaption to encrypted computation, the following changes are made:

[0325] An integer N is selected using the following criteria:

[0326] 1. N must be a prime number.

[0327] 2. N must be at least as great as the number of nodes (N≧p).

[0328] 3. N must make allowance for any constants selected as important by the user, meaning that N must be greater than any such selected constant.

[0329] 4. N must accommodate any other requirements on it imposed by the user, if possible.

[0330] R is restricted to the class of finite fields R=

_(N) for the selected N. This ensures that no polynomials over

_(N) have more than N^(l) coefficients, where d is the number of variables of a given polynomial. This is due to the fact that for any x∈

_(N), x^(∈)=x^(∈) for some e>N−1 and 0<e′≦N.

[0331] Each g_(n) may only be polynomial, so each q_(n,I)≡1.

[0332] By convention, nodes are numbered from 0 to p−1 instead of from 1 to p.

[0333] The full state space concept is changed to include both the input and output spaces, such that the full state space

is now:

S=Z _(N) ×Z _(N) ^(S) ×Z _(N) ^(O) ×Z _(N) ^(I)

[0334] giving 1+S+O+I components in all.

[0335] Every mapping g_(n) is the identity for all the last I components. This ensures that the machine cannot write to input.

[0336] No mapping g_(n) may have as variables any of the components 1+S+1 to 1+S+O.

[0337] This ensures that no output is used in further computation.

[0338] All nodes accept input from the last I components in the full state vector {right arrow over (x)}∈

without use of any special input mapping..

[0339] All nodes compute output to components number 1+S+1 through 1+S+O.

[0340] There are only two types of nodes:

[0341] 1. computation nodes: these may contain a computation, and/or a branching; and

[0342] 2. halting nodes: these nodes have at least two incoming edges (one from itself), and only one outgoing edge to itself.

[0343] As an option, one may explicitly list halting nodes of the machine, or define certain output symbols as “halting signals” (as per the symbol “B” for augmented Mealy machines), or do both.

[0344] Since the modified machines are constructed over

_(N), which contains only non-negative integers, the original version of the branch node becomes meaningless. Instead, the next-node function takes the form β: {overscore (N)}×

_(N)→{overscore (N)}. To simplify, require {overscore (N)}⊂

_(N), even though one could make do with a smaller prime than some N≧p for the state-space. This implies that β is extended to β:Z_(N) ²→Z_(N)..

[0345] The selected replacement relation for branch nodes is a series of relations of the type ∈K⊂(

_(N)−{0}). For each node n there is a list of mutually disjoint subsets of

_(N)−{0}. Define K_(n) to be the union of all K_(nj). For any K⊂

_(N)−{0} define $\begin{matrix} {{b_{K}(z)} = {\left( {\prod\limits_{i \in {Z_{N} - K}}\quad \left( {z - i} \right)^{N - 1}} \right){{modN}.}}} & (25) \end{matrix}$

[0346] When z∈

_(N), b_(K)(z) maps to 1 if any one if z∈K and to 0 otherwise. The function b_(K) exploits a property of elements of the finite multiplicative subgroup Z_(N) ^(*) of the finite field

_(N), which effectively implies x^(N−1)=1 mod N. Since 0 is not in this subgroup, it does not satisfy this property, and thus cannot be included in K.

[0347] Let B⊂

_(p) be the set of all branch nodes. Using b_(K), it becomes possible to express β using a polynomial: $\begin{matrix} {{{\beta \left( {n,x} \right)} = {\sum\limits_{i = 0}^{p - 1}\quad {{a_{i}(n)}\Delta \quad \left( {i,x} \right)}}},{where}} & (26) \\ {\left( {i,x} \right) = \left\{ {{\sum\limits_{j = 1}^{j_{i}}\quad {{b_{K_{i,j}}(x)}n_{i,j}}} + {\left( {1 - {b_{K_{n}}(x)}} \right)\begin{matrix} {n^{\prime},{i \notin B}} \\ {n^{''},{i \in {B.}}} \end{matrix}}} \right.} & (27) \end{matrix}$

[0348] The constants n′, n″, and all n_(lj) are all elements in

_(p),Zp, the node space. This enables the expression of the computing endomorphism of the BSS' machine as a polynomial over

_(N). Thus the computing endomorphism for the modified BSS' machine over

_(N) is: $\begin{matrix} {{{H\left( {n,\overset{\rightarrow}{x}} \right)} = \left( {{\beta \left( {n,x_{c_{i}}} \right)},{\sum\limits_{i = 0}^{p - 1}\quad {{a_{i}(n)}{g_{i}\left( \overset{\rightarrow}{x} \right)}}}} \right)},} & (28) \end{matrix}$

[0349] where 1≦C_(i)≦d is fixed for the node.

[0350] It is also possible to take a further step, using the resulting polynomial expression to fill in a function table for H, such that computation can be done by using the function table. Such a function table may have its entries and indices represented in any vectorization deemed convenient for the purposes of its application.

[0351] Let a mapping ƒ(x₁, . . . , x_(m))=(ƒ₁(x₁, . . . ,x_(m)), . . . ,ƒ_(n)(x₁, . . . ,x_(m)) be given as a table indexed by (x₁, . . . ,x_(m)). The table entry (ƒ₁, . . . ,ƒ_(n)) at (x₁, . . . ,x_(m)) is the mapping evaluated at (x₁, . . . ,x_(m)). Assume ƒ is a mapping from Z_(N) ^(m) to Z_(N) ^(n), where N, m and n are positive integers (that do not have to be prime numbers). Then ƒ can be completely defined by its function table.

[0352] The mapping ƒ is prepared for symbolic composition by generating a new function t: Z_(N) _(^(m)) →Z_(N) _(^(n)) . Every entry (ƒ₁, . . . ,ƒ_(n)) corresponding to (x₁, . . . , x_(m)) is placed in entry number X=N^(m−1)x_(m)+. . . +N¹x₂+x₁ as the number F=N^(n−1)ƒ_(n)+. . . +N¹ƒ₂+ƒ₁. Note that X and F are both integers.

[0353] Let g be a mapping from Z_(N) ^(n) to Z_(N) ^(O) and t_(g) be prepared for g as t was for ƒ. Denote by t_(gf) the function table defining the composition of g with ƒ. Symbolic composition of g with ƒ is done by setting t_(g)(X)=t_(g)(t(X)) for every X∈Z_(N) _(^(m)) . Denote by t_(ƒh) the function table defining the composition of ƒ with h₁, . . . ,h_(m). Symbolic composition of ƒ with h₁, . . . ,h_(m) is done by setting t_(ƒh)(X)=t(N^(m−1)t(N^(m−1)t_(m)(X)+ . . . +N¹t₂(X)+t₁(X)) for every X∈Z_(N) _(^(m)) .

[0354] After composition, the resulting function table may be converted back into a polynomial representation, provided N is a prime number. Given a function table t: Z_(N) _(^(m)) →Z_(N), t may be converted into a polynomial as follows: Create a table t′ indexed by tuples on the form (x₁, . . .,x_(m)), whose entries are tuples on the form (f₁, . . . , f_(n)). For every tuple of arguments, (x₁, . . .,x_(m)): compute X = N^(m−1)x_(m) + . . . + N¹x₂+x₁. Set F = t(X). Reduce F to a base-N representation, such that F is represented by a tuple (f₁, . . . , f_(n)). Set the tuple in t′ indexed by (x₁, . . .,x_(m)) to (f₁, . . . , f_(n)). Using t′ as the interpolation data, one may optionally symbolically interpolate a polynomial to find the polynomial form of the function composition.

[0355] A function ƒ can also be composed with multivariate functions which do not have a number of variables directly corresponding to ƒs number of components or a number of components directly corresponding to ƒs number of variables. Let a mapping ƒ(x₁, . . . ,x_(m))=(ƒ₁(x₁, . . . ,x_(m)), . . . ,ƒ_(n)(x₁, . . . ,x_(m))) be given as a table indexed by (x₁, . . . ,x_(m)). The table entry (ƒ₁, . . . ,ƒ_(n)) at (x₁, . . . ,x_(m)) is the mapping evaluated at (x₁, . . . ,x_(m)). Assume ƒ is a mapping from Z_(N) ^(m) to Z_(N) ^(n), where N, m and n are positive integers (that do not have to be prime numbers). Then ƒ can be completely defined by its function table.

[0356] The mapping ƒ is prepared for symbolic composition by generating a new function t:Z_(N) _(^(m)) →Z_(N) _(^(n)) . Every entry (ƒ₁, . . . ,ƒ_(n)) corresponding to (x₁, . . . , x_(m)) is placed in entry number X=N^(m−1)x_(m)+ . . . +N¹x₂+x₁ as the number F=N^(n−1)ƒ_(n)+ . . . +N₁ƒ₂′ƒ₁. Note that X and F are both integers. There are two cases to be considered:

[0357] 1. the symbolic composition offwith h₁, . . . ,h_(k), using function tables, such that one computes ƒ(h₁(x₁, . . . ,x_(c) ₁ ),h₂(x_(c) ₊₁ , . . . ,x_(c) ₁ _(+c)), . . . ,h_(k)(x_(m−c) _(k) ₊₁, . . . ,x_(m))), where c_(i)=m, every, c_(i) being a positive integer, and

[0358] 2. the symbolic composition of h₁, . . . ,h_(k) with ƒ; using function tables, such that one computes every, c_(i) being a positive integer.

[0359] For case 1, denote by t_(ƒn) the function table defining the composition of ƒ with h₁, . . . , h_(k). The mappings h_(i):Z_(N) ^(c) ^(_(l)) →Z_(N) ^(c)are prepared for composition by computing a function table t_(h,i):Z_(N) _(^(c)) →Z_(N) _(^(l)) , where every mapping value (h_(i,l), . . . ,h_(ic) _(l) ) corresponding to a (x_(a+1), . . . ,x_(a+c) _(l) ), where a=Σ_(J=1) ^(I−1) c_(J), is placed in entry number X=N^(C) ^(_(l)) ⁻¹x_(a+c) _(l) + . . . +N¹x_(a+2)+x_(a+1) as the number H=N^(c) ^(_(l−1)) h_(i,c)+ . . . +N¹h_(i,2)+h_(i,1).

[0360] The symbolic composition of ƒ with h₁, . . . ,h_(k) is done as follows: For every i from 1 to k set y_(i) = N^(c) ^(_(l)) . Set a vector (b₁, . . . , b_(k)) to (0, . . . , 0) and reserve a vector (b₁′, . . . , b_(k)′). For every i from 0 to N^(m) do: Set u = 0. For every j from k to 1 do: Set b_(j)′ = t_(h,j)(b_(j)). Multiply u by y_(j). Add b_(j)′ to u. Set t_(fh)(i) to t_(j)(u). Increment the vectorized index (b₁, . . . , b_(k)), taking into account that b₁ is in base y₁, b₂ is in base y₂, . . . , b_(k) is in base y_(k).

[0361] After the composition, the resulting function table may be optionally be converted into a polynomial representation. This procedure is identical to that described above for the previously discussed function table compositions.

[0362] For case 2, denote by thf the function table defining the composition of ƒ with h₁, . . . ,h_(k). The mappings h_(i):Z_(N) ^(C) ^(_(l)) →Z_(N) ^(C) ^(_(l)) are prepared for composition by computing a function table t_(h,i):Z_(N) ^(C) ^(_(l)) →Z_(N) _(^(C)) ^(_(l)) , where every mapping value (h_(i,1), . . . ,h_(i,c) _(l) ) corresponding to a (x_(a+l), . . . ,x_(a+c) _(l) ), where a=

c_(j), is placed in entry number X=n^(C) ^(₁) ⁻¹x_(a+c) _(i) as the number H=N^(c) ^(_(l−1)) h_(i,c) _(l) + . . . +N¹h_(i,2)+h_(i,l).

[0363] The symbolic composition of h₁, . . . ,h_(k) with ƒ is done as follows: Set y₁ = 1; For every i from 2 to k set y_(i) = y_(i−1)N^(c) ^(_(l−1)) . Set a vector (b₁, . . . , b_(k)) to (0, . . . , 0) and reserve a vector (b₁′, . . . , b_(k)′). For every i from 0 to N^(n) do: Set u = t_(j)(i). Set q = 0. For every j from k to 1 do: Set p to the integer result of u/y_(j). Set u = u − py_(j). Set b_(j) to t_(h,j)(u). Add y_(j)b_(j) to q Set t_(hf)(i) to q.

[0364] A function ƒ can also be composed with multivariate functions that do not have a number of variables directly corresponding to ƒs number of components or a number of components directly corresponding to ƒs number of variables, and that in addition may “reuse” one or more variables. Thus each variable may be used in more than one mapping h_(l), and there is no explicit requirement that any given variable be used at all by any of the h_(i). Let a mapping ƒ(x₁, . . . ,x_(m))=(ƒ₁(x₁, . . . ,x_(m)), . . . ,η_(n)(x₁, . . . ,x_(m))) be given as a table indexed by (x₁, . . . ,x_(m)). The table entry (ƒ₁, . . . ,ƒ_(n)) at (x₁, . . . ,x_(m)) is the mapping evaluated at (x₁, . . . ,x_(m)). Assume ƒ is a mapping from Z_(N) ^(m) to Z_(N) ^(n), where N, m and n are positive integers (that do not have to be prime numbers). Then ƒ can be completely defined by its function table.

[0365] The mappings ƒ may in some embodiments be prepared for symbolic composition by generating a new function t:Z_(N) _(^(m)) →Z_(N) _(^(n)) as for previously described methods of composition. The mappings h₁, . . . ,h_(k) may be prepared similarly for some embodiments. As earlier,{right arrow over (w)}_(i) denotes i^(th) group of variables. There are two cases to be considered:

[0366] 1. the symbolic composition of ƒ with h₁, . . . ,h_(k), using function tables, such that one computes ƒ(h₁(x_(e(1,1)), . . . ,x_(e(1,d) ₁ ), . . . , h_(k)(x_(e(k,1)), . . . , x_(e(k,d) _(k)) )), where Σ_(i=1) ^(k) c_(i)=m, every c_(i) being a positive integer, each d_(i)≧1, e(i,j) is the index of the variable “originally fed to ƒ′ fed into the j^(th) variable in mapping h_(l); and

[0367] 2. the symbolic composition of h₁, . . . ,h_(k) with ƒ, using function tables, such that one computes (h₁(f_(e^(′)(1, 1))(x₁, …  , x_(m)), …  , f_(e^(′)(1, c₁))(x₁, …  , x_(m)), x_(e(1, 1)), …  , x_(e(1, d₁))), …  , h_(k)(f_(e^(′)(k, 1))(x₁, …  , x_(m)), …  , f_(e^(′)(k, c_(k)))(x₁, …  , x_(m)), x_(e(k, 1)), …  , x_(e(k, d_(k))))),

[0368] where each c_(i)≧1, e′(i,j) is the index of a component of ƒ, each d_(i)≧1, e(i,j) is the index of the variable “originally fed to ƒ” fed into the j^(th) variable in mapping h_(i).

[0369] For case 1, denote by t_(ƒh) the function table defining the composition of ƒ with h₁, . . . , h_(k). The symbolic composition of ƒ with h₁, . . . ,h_(k) is done as follows: Set a vector (a₁, . . . , a_(m)) to (0, . . . , 0). For every i from 0 to N^(m) do: For every j from k to 1 compute h_(j)(a_(e(j,1)), . . . , a_(e(j,d) _(j) ₎); set t_(fh)(a₁, . . . , a_(m)) = f(h₁, . . . , h_(k)); Increment the vectorized index (a₁, . . . , a_(m)).

[0370] After the composition, the resulting function table may be optionally be converted into a polynomial representation. This procedure is identical to that described above for the previously discussed function table compositions, and requires that N be a prime number. This composition method has many different potential embodiments, depending on the context in which the method is used. An example is the method of parametrized encryption of the register machine, presented later on, where this method is incorporated into the method of encryption in a highly specialized version.

[0371] For case 2, denote by t_(hƒ) the function table defining the composition of ƒ with h₁, . . . ,h_(k). As with the variables in case 1, there is no explicit requirement that all components of ƒ must be used. Also they may be used by more than one h_(i) mapping.

[0372] The symbolic composition of h_(l), . . . ,h_(k) with ƒ is done as follows: Set a vector (a₁, . . . , a_(m)) to (0, . . . , 0). For every i from 0 to N^(m) do: For every j from k to 1 compute h_(j)(f_(e′(j,1)), . . . , f_(e′(j,c) _(j) ₎, x_(e(j,1)), . . . , x_(e(j,d) _(j) ₎) Set t_(hf)(a₁, . . . , a_(m)) = (h₁, . . . , h_(k)). Increment the vectorized index (a₁, . . . , a_(m)).

[0373] As with the previous case, the result of this composition can be converted into a polynomial, provided N is a prime number. Also this method of composition can be highly specialized, with actual embodiment characteristics depending on application context. In addition to using the composition method of the previous case, the parametrized encryption method also makes use of this composition method, and is an example of a specialized embodiment of the method.

[0374] The method of encryption of polynomial mappings using univariate polynomials uses key pairs described by a prime number N and key pairs (r_(i), s_(l)). The number N is given by the specification of the mapping to be encrypted. Each key pair r_(l) and s_(l) are univariate polynomials computing non-linear permutations of

_(N) such that s_(l)(r_(l)(x))=x for x ∈

_(N). From the particular properties of the field

_(N), r_(i) and s_(i) are always uniquely expressible as polynomials over

_(N) with at most N non-zero coefficients. Equal key pairs are allowed, such that for some i and some j≠i, r_(l)=r_(j) and s_(i)=s_(J). The user may also choose to let some pairs be the identity mapping x, such that r_(l)=s_(l)=x. All apparatus for computations described below may or may not make use of precomputed tables for one or more of the following operations, dependent on what the most efficient means of computation for any given operational environment is:

[0375] addition modulo N

[0376] subtraction modulo N

[0377] incrementation modulo N

[0378] exponentiation modulo N

[0379] multiplication modulo N

[0380] multiplicative inversion modulo N

[0381] One assumes the user has a source of random numbers (or pseudo-random numbers with period much greater than N^(N)). The number of key pairs (r_(i), s_(l)) to be generated is dependent on the number of function components and variables in the plaintext mapping.

[0382] In one embodiment, the coefficients of the functions ${a_{k}(x)} = {\prod\limits_{{0 \leq j < N},{j \neq k}}\quad \frac{x - j}{k - j}}$

[0383] are precomputed modulo N using an algorithm based on Horn polynomial evaluation and stored in a two-dimensional array a(k,J), where 0≦k<N gives the function subscript, and 0≦j<N the individual coefficient. In an alternate embodiment, the coefficients are calculated as needed.

[0384] The procedure then generates pairs (r_(l), s_(l)) for those key pairs not chosen to be the identity mappings, and those not copied from previously generated key pairs (because they are chosen to be equal).

[0385] Accordingly, for each pair, let R and S be arrays of N numbers in

_(N) indexed from 0 to N−1. Every element of S is initiated to the negative integer −1. For every 0≦k<N a random number j∈

_(N) is generated until S(j)=−1. Then one sets R(k)=j and S(j)=k.

[0386] The encryption key r_(l)(x), which is a univariate polynomial, is then symbolically interpolated using the array R according to the expression: ${r_{i}(x)} = {\sum\limits_{j = 0}^{N - 1}\quad {{a_{j}(x)}{{R(j)}.}}}$

[0387] Thus the k^(th) coefficient is computed as the $\left( {\sum\limits_{j = 0}^{N - 1}\quad {{a\left( {j,k} \right)}{R(j)}}} \right){modN}$

[0388] Similarly, the decryption key s_(i)(x) is interpolated using the array S according to the expression: ${s_{i}(x)} = {\sum\limits_{j = 0}^{N - 1}\quad {{a_{j}(x)}{{S(j)}.}}}$

[0389] The coefficients of s_(l) are computed in the same manner as for r_(l). If r_(l) and s_(l) are linear, the procedure is repeated until r_(l) is non-linear or a preset limit for generation attempts is exceeded.

[0390] Only polynomial mappings in the form h:Z_(N) ^(d)→Z_(N) ^(∈) where h(x_(l), . . . , x_(d))=(h₁(x₁, . . . , x_(d)), . . . , h_(e)(x_(l), . . . , x_(d))) may be encrypted. Prior to encryption, one must decide which x_(i) to decrypt. Let I⊂{e+1, . . . , e+d} be this set. In addition, one must decide which mapping components to encrypt. Let J⊂{1, . . . , e} be this set. All keypairs (r_(l), s_(i)) such that i∉I∪J are then set to the identity mapping x.

[0391] Encryption is achieved by replacing each x_(j) where (j+e)∈I, with s_(j+e)(x_(j)), and each h_(l)() where i∈J with r_(l)(h_(l)( . . . )), such that one composes r_(l) with h_(l) symbolically. The resulting expression will be:

(r ₁(h ₁(_(e+1)(₁), . . . ,s _(e+d)(x _(d))), . . . ,r_(e)(h_(e)(s _(e+1)(x ₁), . . . ,s _(e+d)(x _(d)))).

[0392] The mapping h is thus encrypted with the key pairs (r₁, s₁), . . . , (r_(e+d, s) _(e+d)) using symbolic function composition. This results in a polynomial mapping:

H(x ₁ , . . . , x _(d))=(H ₁(x ₁ , . . . , x _(d)), . . . , H _(e)(x ₁ , . . . , x _(d))).

[0393] where inputs with index in I are taken in encrypted form and decrypted, and other inputs are taken in plaintext form. The original computation h is applied, and components in J are output in encrypted form, while the rest are output as plaintext.

[0394] Decryption is not meant to be performed on encrypted polynomial mappings, only encrypted data. A datum x∈

_(N) is encrypted by applying r, giving y=r(x). Similarly, an encrypted datum y is decrypted by applying s, giving x=s(y).

[0395] In particular, the expressions for the partial encryptions of Mealy machines will in general be in the form given in equation (6), duplicated below with the I index in the original equation replaced by L: $\begin{matrix} {{\left( {E_{r,s} \circ H} \right)\left( {{\overset{\rightarrow}{x}\left( {n + 1} \right)},{\overset{\rightarrow}{z}\left( {n + 1} \right)}} \right)} = \quad {r_{1}\left( {{\overset{\sim}{\delta}}_{1}\left( {{S_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {\left. \quad {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + L}\left( {y_{L}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{S}\left( {{\overset{\sim}{\delta}}_{S}\left( {{S_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {\left. \quad {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + L}\left( {y_{L}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{S + 1}\left( {{\overset{\sim}{\lambda}}_{1}\left( {{S_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {\left. \quad {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + L}\left( {y_{L}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{S + O}\left( {{\overset{\sim}{\lambda}}_{1}\left( {{S_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{S}\left( {x_{S}(n)} \right)},} \right.} \right.}} \\ {\left. \left. \quad {{s_{{2S} + O + 1}\left( {y_{1}(n)} \right)},\ldots \quad,{s_{{2S} + O + L}\left( {y_{L}(n)} \right)}} \right) \right).} \end{matrix}$

[0396] In the above equation, the r_(l)s and s_(l)s are key pairs as above in this sub-subsection, except that I and J may now contain indexes pointing to components formally given in different vectors.

[0397] For a BSS' machine, the resulting expression for the partially encrypted machine is of the form given in equation (7), duplicated below with the I index in the original equation replaced by L: $\begin{matrix} {{\overset{\rightarrow}{x}\left( {n + 1} \right)} = \quad {\left( {E_{r,s} \circ H} \right)\left( {\overset{\rightarrow}{x}(n)} \right)}} \\ {= \quad {r_{1}\left( {H_{1}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{1 + S}\left( {x_{1 + S}(n)} \right)},} \right.} \right.}} \\ {\quad {{s_{1 + S + O + S + O + 2}\left( {x_{S + O + 2}(n)} \right)},\ldots \quad,}} \\ {\quad {{s_{1 + S + O + S + O + L + 1}\left( {x_{S + O + L + 1}(n)} \right)},\ldots \quad,}} \\ {\quad {r_{1 + S + O}\left( {H_{1 + S + O}\left( {{s_{1}\left( {x_{1}(n)} \right)},\ldots \quad,{s_{1 + S}\left( {x_{1 + S}(n)} \right)},} \right.} \right.}} \\ {\quad {{s_{1 + S + O + S + O + 2}\left( {x_{S + O + 2}(n)} \right)},\ldots \quad,}} \\ \left. \left. \quad {s_{1 + S + O + S + O + L + 1}\left( {x_{S + O + L + 1}(n)} \right)} \right) \right) \end{matrix}$

[0398] In the above equation, the r_(l)s and s_(l)s are key pairs as described above.

[0399] In a method of re-encrypting polynomial mappings partially encrypted with univariate polynomials, let ƒ be a mapping with n functional components expressed as polynomials in m variables. Assume ƒ is partially encrypted using the key pairs (r₁,s₁), . . . , (r_(n+m), s_(n+m)), such that E_(r,s) ∘ƒ may be written in the form given in equation (5).

[0400] Re-encryption is achieved by:

[0401] 1. generating a new set of key pairs (r₁ ^(′), s₁ ^(′)), . . . , r_(n+m), s_(n+m) ^(′)) possibly subject to the same constraints of the original encryption of ƒ,

[0402] 2. for every 1≦i≦n+m symbolically composing r_(l) ^(′) with s_(i) to generate r_(l) ^(′)(s_(l)(x)),

[0403] 3. for every 1≦i≦n+m symbolically composing r_(l) with s_(l) ^(′) to generate r_(l)(s_(l) ^(′)(x)),

[0404] 4. for every variable x_(l), n<i≦n+m, symbolically substituting x, with r_(i)(s_(l) ^(′) (x)), and

[0405] 5. for every function component ƒ_(p) 1≦i≦n, symbolically composing r_(l) ^(′)(s_(l)(x)) with r_(l)(ƒ_(l)( . . . )).

[0406] The method of encryption of Mealy machines with permutations of Z_(N), defined using state transition mappings and output mappings, uses function tables to express the state transition mappings and the encryption and decryption functions. The method uses key pairs (r_(i),s_(i)) are permutations of Z_(N). The state transition mapping is δ′, and the output mapping is λ′.

[0407] This method can encrypt mappings of the form: (δ′,λ′):Z_(N) ^(S+I)→Z_(n) ^(S+O), with corresponding function table t_(h) effectively representing a function: t_(h):Z_(N) _(^(S+I)) →Z_(N) _(^(S+O)) .

[0408] To simplify notation consider (δ′,λ′) as the mapping h(x₁, . . . ,x_(d))=(h₁(x₁, . . . ,x_(d)), . . . ,h_(e)(x₁, . . . ,x_(d))), where d=S+I, and e=S+O. The actual order of the components of δ′ and λ′ in h may vary from embodiment to embodiment. Prior to encryption, one must decide which x_(i) to decrypt. Let K⊂{e+1, . . . ,e+d} be this set. In addition, one must decide which mapping components to encrypt. Let J⊂{1, . . . ,e} be this set. All key pairs (r_(i),s_(i)) such that i∈K∪J are then generated. Different pairs of keys may or may not be equal, depending on choices made by the user. Thus it is possible to have r_(i)=r_(J) and s_(i)=s_(j) for some i≠j. Key pairs (r_(i),s_(i)) such that i∉K∪J are meant to be identity mappings, and are left unused by the method described here.

[0409] Key generation is done as with encryption using univariate polynomials. For each i∈K∪J do the following: For every j from 0 to N − 1 set s_(i)(j) = −1. For every k from 0 to N − 1: Generate a random number jεZ_(N) until s_(i)(j) = −1. Set r_(i)(k) = j and s_(i)(j) = k. Encryption is achieved as follows: Reserve a temporary table t_(h)′ defining a function t_(h)′: Z_(N) _(^(S+1)) →Z_(N) _(S+0) . Initialize a vector (x₁, . . . , x_(d)) to (0, . . . , 0). First do symbolic composition of the inputs assumed to be encrypted with the relevant decryption functions (using function tables). For every i from 0 to N^(d) − 1 do: Set k = 0. Partially decrypt (x₁, . . . , x_(d)) by doing for every j from d to 1: if j + e⊖K, then set y_(j) = s_(j+e)(x_(j)) otherwise set y_(j) = x_(j) Set k = kp + y_(j) Set t_(h)′(k) = t_(h)(i). Increment the vector x as if it were a number in base-N representation. The powers N¹, . . . , N^(d−1) may optionally be precomputed at this point, any previous point in this method, or may be read from a table precomputed independently of this particular method. Second: symbolic composition of the outputs that are to be encrypted with the relevant encryption functions (using function tables). For every i from 0 to N^(d) − 1 do: Set k = t_(h)′(i). Compute a vector (x₁, . . . , x_(d)) from k. For every j from d to 1 do: if jεJ, then set y_(j) = r_(j)(x_(j)) otherwise set y_(j) = x_(j) Evaluate (y₁, . . . , y_(d)) as digits of a number in base-N representation to give the number m. Set t_(h)′(i) = m. Lastly, copy the function table of t_(h)′ to the function table of t_(h).

[0410] Re-encryption is identical to the method for the direct polynomial representations, except that all mappings are always represented as function tables:

[0411] 1. Generate a new set of key pairs (r₁ ^(′),s₁ ^(′)), . . . ,(r_(n+m) ^(′),s_(n+m) ^(′)), possibly subject to the same constraints applied to the original encryption of h.

[0412] 2. For every 1≧i≧n+m symbolically composing r_(i) ^(′) with s_(i) to generate the function table for r_(i) ^(′)(s_(i)(x)).

[0413] 3. For every 1≦i≦n+m symbolically composing r_(i) with s_(i) ^(′) to generate the function table for r_(i)(s_(i) ^(′)(x)).

[0414] 4. For every variable x_(i) in h where n<i≦n+m, symbolically substituting x_(i) with r_(i)(s_(i) ^(′)(x)).

[0415] 5. For every function component h_(i), 1≦i≦n, symbolically composing r_(i) ^(′)(s_(i)(x)) with r_(i)(ƒ_(i)( . . . )).

[0416] The method of encryption of polynomial mappings using multivariate polynomials uses key triples (c_(l), r_(l), s_(l)) with the following properties:

[0417] 1. c_(l) is an integer such that c_(i)≧1

[0418] 2. r_(l) and s_(l) are bijections (permutations) from Z_(N) ^(C) _(l) to Z_(N) ^(C) _(l) , where N is a prime number given by the specification of the machine to be encrypted.

[0419] 3. r_(l) and s_(l) are selected so they are non-linear.

[0420] 4. Each component r_(lj) of r_(i) and s_(l,j) of s_(i) is expressed as a multivariate polynomial from Z_(N) ^(C) _(′) into

_(N).

[0421] The mappings r_(l) are the encryption mappings, and are written

r _(i)(x ₁ . . . , x _(c) _(l) )=(r _(i,1)(x ₁ , . . . , x _(c) _(i) ), . . . , r _(i,c) _(l) (x ₁ , . . . x _(c) _(l) )).

[0422] The mappings s_(i) are the decryption mappings, and are written

s _(i)(x ₁ . . . , x _(c) _(l) )=(s_(i,l)(x₁, . . . , x_(c) _(l) ), . . . , S_(i,c) _(l) (x₁, . . . x_(c) _(l) )).

[0423] Different c_(l)s may be chosen to be equal such that for some i and some j≠i, c_(l)=c_(j). Furthermore, if c_(l)=c_(j) for some j≠i, then one may choose to set r_(l)=r_(j) and s_(l)=s_(J). Also, r_(l) and s_(i) may in general be set to the identity mapping (x₁, . . . ,x_(c) _(l) ) for one or more i.

[0424] From the particular properties of the field

_(N), it follows that r_(l) and s_(l) are always uniquely expressible as polynomials over

_(N) with at most N^(C) ^(_(l)) non-zero coefficients.

[0425] All apparatus for computations described below may or may not make use of precomputed tables for one or more of the following operations, dependent on what the most efficient means of computation for any given operational environment is:

[0426] addition modulo N

[0427] subtraction modulo N

[0428] incrementation modulo N

[0429] exponentiation modulo N

[0430] multiplication modulo N

[0431] multiplicative inversion modulo N

[0432] The number N is given by the specification of the mapping to be encrypted. It is assumed that the user has a source of random numbers (or pseudo-random numbers with period much greater than N^(N) ² . The selection of block sizes c_(l) are specified by the user. When this is done, the number of triples (c_(l), r_(l), s_(i)) to be generated is dependent on the number of finction components and variables in the plaintext mapping.

[0433] In one embodiment of the present invention, next the coefficients of the functions ${a_{k}(x)} = {\left( {\prod\limits_{{0 \leq j < N},{j \neq k}}\quad \frac{x - j}{k - j}} \right){modN}}$

[0434] are precomputed using an algorithm based on Horn polynomial evaluation and stored in a two-dimensional array a(k j), where 0≦k<N gives the function subscript, and 0≦j<N the individual coefficient. In an alternate embodiment, the coefficients are computed as needed.

[0435] The procedure then generates triples (c_(l), r_(l), s_(l)), for those triples not chosen to be the identity mappings, and those not copied from previously generated triples (because they are chosen to be equal).

[0436] Accordingly, for each triple, select c_(i), and let R and S be arrays of N^(C) ^(_(i)) (c_(i)+1) numbers in

_(N) indexed by two indexes: the first from 0 to N^(c) ^(_(′)) −1 , the second from 0 to c_(i). Every element S(k, 0) is initiated to the negative integer “−1 .

[0437] For every k such that 0≦k<N^(c) ^(_(l)) , the following steps are executed:

[0438] 1. A random number j∈Z_(N) _(^(C)) _(′) is generated until S(j)=−1.

[0439] 2. R(k, 0) is set equal to j and S(j, 0) is set equal to k.

[0440] 3. The base-N representation of k is computed and stored in S(j, 1) to S(j, c_(l)).

[0441] This is the c_(i)-tuple or -vector, which k represents. This will be used to symbolically compute the polynomial mappings of s_(l).

[0442] 4. The base-N representation of j is computed and stored in R(k, 1) to R(k, c_(l)).

[0443] This will be used to symbolically compute the polynomial mappings of r_(r)

[0444] Let the polynomial ƒ be given as ${f\left( {l_{1},\ldots \quad,l_{c_{i}}} \right)} = {\sum\limits_{k = 0}^{c_{i} - 1}\quad {N^{k}{l_{k + 1}.}}}$

[0445] ƒconverts a base-N index vector with c_(i) components to one index integer 0≦l<N^(C) ^(_(l)) .

[0446] The encryption key r,({overscore (x)}), which is a vector of multivariate polynomials is symbolically interpolated using the array R according to the expression: $\left. {{r_{i,j}\left( {x_{1},\ldots \quad,x_{c_{i}}} \right)} = {\sum\limits_{\overset{\rightarrow}{l} \in Z_{N}^{c_{i}}}\quad {{a_{l_{1}}\left( x_{1} \right)}\quad \cdots \quad {a_{l_{c_{i}}}\left( x_{c_{i}} \right)}{R\left( {{f\left( \overset{\rightarrow}{l} \right)},j} \right)}}}} \right).$

[0447] Similarly, the decryption key s_(l)({right arrow over (x)}) is symbolically interpolated using the array S according to the expression: $\left. {{s_{i,j}\left( {x_{1},\ldots \quad,x_{c_{i}}} \right)} = {\sum\limits_{\overset{\rightarrow}{l} \in Z_{N}^{c_{i}}}\quad {{a_{l_{1}}\left( x_{1} \right)}\quad \cdots \quad {a_{l_{c_{i}}}\left( x_{c_{i}} \right)}{S\left( {{f\left( \overset{\rightarrow}{l} \right)},j} \right)}}}} \right).$

[0448] The process of encryption and decryption is ellaborated below. Assuming series of triples (c₁,r₁, s₁), . . . , (c_(k), r_(k), s_(k)), and letting h be a polynomial plaintext mapping

h: Z_(N) ^(d→Z) _(N) ^(e),

[0449] creates

[0450] H(x₁, . . . , x_(d))=(H₁(x₁, . . . , H_(e)(x₁, . . . , x_(d))),

[0451] It is possible to partially encrypt h using the given series of key triples, provided

[0452] 1. there exists some l such that 1≦l<k and Σ_(j=1) ^(l) c_(i)=e,

[0453] 2. Σ_(j=l+1) ^(k) c_(l)=d,

[0454] As a convention, the function components of h are grouped in groups of c₁, . . . , c_(l) components. That is: the first group contains c₁ function components, the second c₂ components, etc. up to the l^(th) group, which contains the last c_(l) components of h. The j^(th) group of function components may for brevity's sake be written v_(j) in the following, where ${v_{j} = \left( {h_{a + 1},\ldots \quad,h_{a + c_{j}}} \right)},{a = {\sum\limits_{b = 1}^{j - 1}\quad {c_{b}.}}}$

[0455] Similarly, the variables are grouped in groups of c_(l+1), . . . ,c_(k) variables, such that the first group contains c_(l+1) variables, the second c₁₊₂ variables, and so on to the last group, which contains c_(k) variables. The j^(th) group of variables may for brevity's sake be written {overscore (w)}_(J) in the following.

[0456] Prior to encryption, one must decide which groups {overscore (w)}_(J) of variables to decrypt. Let I ⊂{l+1, . . . , k} be the set of indexes of variable groups to decrypt. In addition, one must decide which groups v_(j) of function components to encrypt. Let J⊂{1, . . . , l} be the set of indexes of function component groups to encrypt.

[0457] Encryption is then achieved by replacing each group of variables {overscore (w)}_(J) where j+l ∈I by the mapping s_(l+j)({overscore (w)}_(j)), and each group of function components v_(J) where j ∈J with r_(j)(v_(j)( . . . )) such that one composes r_(J) with v_(J) symbolically. The resulting expression will be:

(r₁(v₁(s_(l+1)({right arrow over (w)}₁), . . . ,s_(k)({right arrow over (w)}_(k−l))), . . . ,r_(l)(v_(l)({right arrow over (w)}₁), . . . ,s_(k)({right arrow over (w)}_(k−l)))),

[0458] which, when written out, is: (r₁(h₁s_(l + 1)(x₁, …  , x_(c_(l + 1))), …  , s_(k)(x_(d − c_(k + 1)), …  , x_(d))), …  , h_(c₁)(s_(l + 1)(x₁, …  , x_(c₁)), …  , s_(k)(x_(d − c_(k + 1)), …  , x_(d)))), …  , (r₁(h_(c_(l − 1))(s_(l + 1)(x₁, …  , x_(c_(l + 1))), …  , s_(k)(x_(d − c_(k + 1)), …  , x_(d))), …  , h_(l)(s_(l + 1)(x₁, …  , x_(c₁)), …  , s_(k)(x_(d − c_(k + 1)), …  , x_(d)))))

[0459] Inputs in a group whose indexes are in I are taken in encrypted form and decrypted before use, while the other inputs are already in plaintext form. The original mapping is applied to the decrypted and plaintext inputs, before those components in a group whose index is in J are encrypted. The remaining components are output as plaintext.

[0460] Decryption is not meant to be performed on partially encrypted polynomial mappings, only on encrypted data. A datum _(i)∈Z_(N) ^(C) ^(_(′)) is encrypted by applying r_(l), giving {right arrow over (y)}_(l)=r_(l)({right arrow over (w)}_(i)). Similarly, an encrypted datum {right arrow over (y)}, is decrypted by applying s₁, giving {right arrow over (w)}_(l)=s_(l)({right arrow over (y)}₁).

[0461] The partially encrypted state and output data after n applications of H (for the Mealy machine) is written

({right arrow over (w)}₁(n), . . . , {right arrow over (w)}_(k−l)(n)).

[0462] The general expression for a partially encrypted Mealy machine may be written as in equation (11), duplicated here: $\begin{matrix} {\begin{matrix} {\left. {{\overset{\rightarrow}{x}\left( {n + 1} \right)},{\overset{\rightarrow}{z}\left( {n + 1} \right)}} \right) = \quad {\left( {E_{r,s} \circ H} \right)\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)}} \\ {= \quad \left( {r_{1}\left( {{{\overset{\sim}{\delta}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{\delta_{c_{1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right),\ldots \quad,} \\ {\quad \left( {r_{\overset{\sim}{i}}\left( {{\delta_{D - c_{\overset{\sim}{i}} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\delta}}_{D}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{\overset{\sim}{i} + 1}\left( {{{\overset{\sim}{\lambda}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\lambda}}_{c_{\overset{\sim}{i} + 1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. {\quad \left. {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right)} \right),\ldots \quad,} \\ {\quad {r_{l}\left( {{{\overset{\sim}{\lambda}}_{0 - c_{i} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\lambda}}_{O}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ \left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right) \end{matrix}{{{or}\quad {as}\quad {in}\quad {equation}\quad (12)},{{duplicated}\quad {here}\text{:}}}} & (29) \\ \begin{matrix} {{E_{r,s}\left( {{\overset{\rightarrow}{x}\left( {n + 1} \right)},{\overset{\rightarrow}{z}\left( {n + 1} \right)}} \right)} = \quad {\left( {E_{r,s} \circ H} \right)\left( {{\overset{\rightarrow}{x}(n)},{\overset{\rightarrow}{y}(n)}} \right)}} \\ {= \quad \left( {r_{1}\left( {{{\overset{\sim}{\delta}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{\delta_{c_{1}}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right) \right),\ldots \quad,} \\ {\quad \left( {r_{\overset{\sim}{i}}\left( {{\delta_{D - c_{\overset{\sim}{i}} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.} \right.} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\delta}}_{S}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {r_{\overset{\sim}{i} + 1}\left( {{{\overset{\sim}{\lambda}}_{1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{\overset{\sim}{\delta}}_{D - S}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},} \right.}} \\ {\left. {\quad \left. {s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)} \right)} \right),\ldots \quad,} \\ {\quad {r_{l}\left( {{{\overset{\sim}{\lambda}}_{0 - c_{i} + 1}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},} \right.}} \\ {\left. \quad {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right),\ldots \quad,} \\ {\quad {{{\overset{\sim}{\lambda}}_{O}\left( {{s_{1}\left( {{\overset{\rightarrow}{w}}_{1}(n)} \right)},\ldots \quad,{s_{\overset{\sim}{i}}(n)}} \right)},}} \\ \left. \left. {\quad \left. {{s_{l + \overset{\sim}{i} + 1}\left( {{\overset{\rightarrow}{w}}_{\overset{\sim}{i} + 1}(n)} \right)},\ldots \quad,{s_{k}\left( {{\overset{\rightarrow}{w}}_{k - l}(n)} \right)}} \right)} \right) \right) \end{matrix} & (30) \end{matrix}$

[0463] In both the above equations {tilde over (l)} is such that D=Σ_(J=1) ^({tilde over (l)})c_(J)≧S, and D−c_({tilde over (l)})<S. The number of mapping components is S+O: S in the next-state mapping δ, and O in the output mapping λ. The first equation is for the case where D=S, and the second for the case where D>S. The r_(i)s and s_(l)s are the encryption keys in the triples chosen during key generation.

[0464] For the BSS' machines, the resulting expression resembles the above expressions, but is slightly simpler. There is one variable vector {right arrow over (x)}(n) with 1+S+O+I components. H has 1+S+O components. As with the Mealy machine, the triples (c_(l), r_(l), s_(t)) must equal (c_(l+i),r_(l+i); s_(l+i)) for 1≧i≧{tilde over (l)}, where {tilde over (l)} is such that Σ_(J=l) ^({tilde over (l)})c_(j)≧1+S and Σ_(J=1) ^({tilde over (l)}−1)c_(J)<1+S. Set D=Σ_(J=1) ^({tilde over (l)})c_(J). In any case, D may not exceed the number of variables, so in the case where there are more function components than variables, there may be function components free of such restrictions when deciding upon triples for encryption. The partially encrypted state and output data after n applications of H is defined as

({right arrow over (w)}₁(n), . . . ,{right arrow over (w)}_(k−l)(n)).

[0465] The partially encrypted version of H for a modified BSS' machine is defined as equation (13).

[0466] It is also possible to re-encrypt polynomial mappings partially encrypted with multivariate polynomial mappings. Let ƒ be a mapping with n functional components expressed as polynomials in m variables. Assume ƒ is partially encrypted using the key triples (c₁, r₁, s₁), . . . , (c_(k), r_(k), s_(k)), such that E_(r,s)∘ƒ may be written in the form given in equation (9). Note in particular that there are l groups/blocks of function components and k−l groups/blocks of variables.

[0467] Re-encryption is achieved by:

[0468] 1. generating a new set of key triples (c₁, r₁ ^(′), s₁ ^(′)), . . . , (c_(k), r_(k) ^(′), s_(l) ^(′)), such that block sizes are preserved, possibly subject to the same constraints of the original encryption of ƒ,

[0469] 2. for every 1≦i≦l symbolically composing r_(i) ^(′) with s_(i) to generate r_(i) ^(l)(s_(i)( . . . )),

[0470] 3. for every 1<i≦k symbolically composing r, with s_(i) ^(′) to generate r_(i)(s_(i) ^(′),( . . . )),

[0471] 4. for every block of variables {right arrow over (w)}_(l)<i≦k, symbolically substituting {right arrow over (w)}, with r_(i)(s_(i) ^(′)({right arrow over (w)})), and

[0472] 5. for every block of function components v_(l), 1≦i≦l, symbolically composing r_(i) ^(′)(s_(i)( . . . )) with r_(l)(ƒ_(i)( . . . )).

[0473] Encryption of polynomial mappings using two-variable polynomials, is an important special case of encryption using multivariate polynomials, where all c_(l)=2. The only differences between the general multivariate case and the two-variable case will be in the way some of the mathematical operations are implemented, as different algorithms are optimal for different cases.

[0474] The method of encryption of Mealy machines represented using function tables with permutations of Z_(N) _(^(c)) for some c≧1, uses triples (c_(i),r_(i),s_(l)) with the following properties:

[0475] 1. c_(i) is a positive integer.

[0476] 2. r_(i) and s_(i) are bijections (permutations) from Z_(N) ^(c) ^(_(′)) to Z_(N) ^(c) ^(_(′)) expressed using function tables t_(r,i):Z_(N) _(^(c′)) →Z_(N) _(^(c)) _(′).

[0477] 3. r_(i) and s_(i) are selected such that they are non-linear.

[0478] The mappings r_(i) are the encryption mappings, and the s_(i) are the corresponding decryption mappings.

[0479] Different c_(i)s may be chosen equal such that for some i and some j≠i,c_(l)=c_(j). Furthermore, if c_(i)=c_(j) for some j≠i, then one may choose to set r_(i=r) _(j) and s_(i)=s_(j). Also, r_(i) and s_(i) may in general set to the identity mapping (x₁, . . . ,x_(c) _(l) ) for one or more i.

[0480] The number N is given by the augmented Mealy machine M. When generating the key triples, it is assumed that the user has a source of pseudo-random numbers with period much greater than N^(m+n). For each triple (c_(i),r_(i),s_(i)) select c_(i) and let t_(r,i) and t_(s,i) be function tables of r_(i) and s_(i), respectively. The tables t_(r,i) and t_(s,i) of N^(C) ^(_(l)) numbers in Z_(N) ^(C) ^(_(i)) are indexed from 0 to N^(C) ^(_(l)) −1 . Every element in t_(s,i) is set to −1.

[0481] For every k from 0 to N^(c)−1 do:

[0482] A random number j∈Z_(N) _(c) _(l) is generated until S(j)=−1.

[0483] Set t_(r,i)(k)=j and t_(s,i)(j)=k.

[0484] When key generation is finished, there will be a series of triples (c₁,r₁,s₁), . . . ,(c_(k),r_(k),s_(k)). This series of triples can be used to encrypt mappings of the form: (δ′,λ′)=h:Z_(N) ^(S+1)→Z_(N) ^(S+)), with corresponding function table t_(h) effectively representing a function: t_(h):Z_(N) _(^(S+O)) . The actual order of the components of δ′ and λ′ in h may vary from embodiment to embodiment. The mapping h is assumed to be on the form: (h₁(x₁, . . . ,x_(d)), . . . ,h_(e)(x₁, . . . ,x_(d))), where d=S+I, and e=S+O.

[0485] The generated key triples can partially encrypt t_(h), provided:

[0486] 1. there exists some l such that 1≧l<k and Σ_(j=1) ^(l) c_(i)=e, and

[0487] 2. Σ_(j=l+1) ^(k) c_(i)=d.

[0488] To simply notation denote the jth group of function components v_(j)=(h_(a+1), . . . ,h_(a+c)), where a=Σ_(b=1) ^(j−1) c_(b). Similarly, group the variables into groups of c_(l+1), . . . ,c_(k) variables, such that the jth group of variables is written: {right arrow over (w)}_(j)=(x_(a+1), . . . ,x_(a+c) _(j+l) ), where a=Σ_(b=1) ^(j−1) c_(b+l). Prior to encryption, one must decide which groups {right arrow over (w)}_(j) of variables to decrypt. Let K⊂{l+1, . . . ,k} be the set of indexes of variable groups to decrypt. In addition, one must decide which groups v_(j) of function components to encrypt. Let J⊂{1, . . . ,l} be the set of indexes of function component groups to encrypt. Encryption is achieved as follows: Reserve a temporary table t_(h)′ defining a function t_(h)′: Z_(N) _(^(d)) →Z_(N) _(^(e)) . For every i from 1 to k set y_(i) = N^(C) ^(_(l)) . Set z₁ = 1. For every i from 2 to 1 set z_(i) = y_(i−1)z_(i−1). Set z_(l+1) = 1. For every i from l + 2 to k set z_(i) = y_(i−1)z_(i−1). Initialize a vector (b_(l), . . . , b_(k−l)) to (0, . . . , 0). This vector represents the k − l variable blocks, in a base N^(C) ^(_(i)) , representation. For each variable block i: b_(i) = Σ_(j=1) ^(C) ^(_(i+l)) N^(j−1)x_(a+j), where a = Σ_(j=1) ^(i−1)c_(j+l). Reserve a vector (b₁′, . . . , b_(k−l)′). For every i from 0 to N^(d) − 1 do: Set u = 0. For every j from k to l do: if s_(j) is not the identity mapping set b_(j−l)′ = r_(j)(b_(j−l)) else set b_(j−l)′ = b_(j−l). Multiply u by y_(j). Add b_(j−l)′ to u Set t_(h)′(i) = t_(h)(u). Increment the vectorized index (b₁, . . . , b_(k−l)), taking into account the different sets from which the individual components may be taken. Reserve a vector (b₁, . . . , b_(l)). For every i from 0 to N^(d) − 1 do: Set u = t_(h)′(i). Set q = 0; For every j from l to 1 to: Set p to the integer result of u/z_(j). Subtract pz_(j) from u to get the remainder. Set b_(j) = u. if r_(j) is not the identity mapping set b_(j) = r_(j)(b_(j)) Add z_(j)b_(j) to q. Set t_(h)′(i) =q. Lastly, copy the function table of t_(h)′ to the function table of t_(h).

[0489] Decryption is not meant to be performed on partially encrypted function tables, only on encrypted data. A datum {right arrow over (w)}_(i)∈Z_(N) ^(C) ^(_(′)) is encrypted by applying t_(r,i+l) to the evaluation of the polynomial N^(c) ^(_(l+i−1)) x_(a+c) _(1+i) + . . . +N¹x_(a+2)+x₁₊₁, where a=Σ_(j=1) ^(i−1) c_(l+j).

[0490] It is also possible to re-encrypt function tables partially encrypted with key triples (c_(i),r_(i),s_(i)). Let h be a mapping over Z_(N) with n functional components and m variables expressed as a function table t_(h):Z_(N) _(^(m)) →Z_(N) _(^(n)) . Assume that h is partially encrypted using the key triples (c₁,r₁,s₁), . . . ,(c_(k),r_(k),s_(k)). Take the first l of these to be triples applied to function components (although this may vary from embodiment to embodiment) and last k-I to be triples applied to variables.

[0491] Re-encryption is achieved by:

[0492] 1. generating a new set of key triples (c₁,r₁ ^(′),s₁ ^(′)), . . . ,(c_(k),r_(k) ^(′),s_(k) ^(′)), such that block sizes are preserved, possibly subject to the same constraints of h's original encryption;

[0493] 2. for every 1≦i≦l symbolically composing r_(i) ^(′)with s_(i) using their function table representations to generate a new function table representation for r_(i) ^(′)(s_(i)(v));

[0494] 3. for every 1<i\leq k symbolically composing r_(i) with s_(i) ^(′) using their function table representations to generate a new function table representation for r_(i)(s_(i) ^(′)({right arrow over (w)}));

[0495] 4. for every block of variables {right arrow over (w)}_(i), l<i≦k symbolically substituting {right arrow over (w)}_(i) with r_(i) ^(′)(s_(i)({right arrow over (w)})) using the already available function tables; and

[0496] 5. for every block of function components v_(i,) 1≦i≦l , symbolically composing r_(i) ^(′)(s_(i)( . . . )) with r_(i)(h_(i)( . . . )) using the already available function tables.

[0497] As described above, Turning Platform is a device supporting polynomial and encrypted polynomial computations. In order for the polynomial representation of Mealy machines, and BSS' machines to be of significant usefulness, proper host support is required. If a host is referred to as “

”, then a Turing platform T includes:

[0498] a very simple, slightly modified Turing machine with unbounded, linearly addressed storage, each storage unit being called a cell; and with a so-called finite control with position in the storage

[0499] an output register writeable by the finite control, which holds one storage unit

[0500] an input register readable by the finite control, which holds one storage unit, and one of three possible movement directions (left, stand still, right)

[0501] an output register writeable by

, which is part of the input of the supported state machine

[0502] an input register readable by

, which is part of the output of the supported state machine

[0503] A complete computation step for a Mealy machine or BSS' machine M supported by a Turing platform proceeds according to the following steps: 1. T reads the cell at which its finite control is placed 2. T writes the cell to the input of M 3. O writes the input of M 4. M computes the next state 5. M computes output and writes it to the input of T 6. M computes output and writes it to the input of O. 7. M computes the direction of movement, and writes it to T 8. T reads form its input register 9. T writes the input to the cell 10. T moves left, right, or stands still, if possible

[0504] Note that the inputs to the Min points 2 and 3 above are supplied to different components of the same input vector. Similarly, all generated outputs mentioned in points 5, 6, and 7 are extracted from different parts of M's output vector. The computation halts either when M outputs a predetermined “halting” signal to the host via its designated output-to-host, or when the host detects that M is stuck in one state, is outputting only a “B” to the writeable register, and is not moving the finite control of the Turing platform about.

[0505] Use of a Turing platform to support the computations of Mealy and BSS' machines allows them to do completely general computations if necessary, effectively making them equivalent to Turing machines in computational power.

[0506] A register machine is constructed to enable more efficient use of cryptographically enhanced machine representations. Different embodiments of the register machine are possible and two distinct types are discussed below. Different embodiments may further be combined to provide register machines with different capabilities.

[0507] Embodiment 1: Allows random memory access, but does not allow universal Turing computation. This type of register machine consists of the following:

[0508] 2. A set P={{right arrow over (P)}_((i) _(l) _(, . . . , i) _(d) ₎} of vectors of integers in Z_(N) ^(d) indexed by vectors also in Z_(N) ^(d). Each {right arrow over (P)}_({right arrow over (i)}) can be thought of as an instruction.

[0509] 3. Either a vector S indicating the end of the program in P, or a constant T, which functions as an instruction indicating that the computation is finished.

[0510] 4. A vector {right arrow over (C)}∈Z_(N) ^(d), which functions as an instruction pointer.

[0511] 5. A set S={{right arrow over (S)}_((i) _(l, . . . , i) _(d) ₎} of vectors of integers in Z_(N) ^(d) indexed by vectors also in Z_(N) ^(d). Each {right arrow over (S)}_(i) is a storage “cell”.

[0512] 6. A vector {right arrow over (D)}∈Z_(N) ^(d), which functions as a storage pointer.

[0513] 7. One or more registers ({right arrow over (R)}₁, . . . , {right arrow over (R)}_(m)) of vectors of integers in Z_(N) ^(d) for 0<m≦N.

[0514] 8. The next instruction pointer mapping ƒ({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(d).

[0515] 9. The next storage pointer mapping ({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),P{right arrow over (P)}_({right arrow over (C)}),{right arrow over (D)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(d).

[0516] 10. A specification of the registers that accept input from the host platform.

[0517] 11. The register transition mapping h({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(kd), where k, 0≦k≦m, is the number of registers not accepting input from the host platform.

[0518] 12. The storage transition mapping q({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}), {right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(d) .

[0519] This type of register machine can accept input from its host platform in one or more of the following ways:

[0520] through one or more registers,

[0521] through one or more selected “cells” in the storage space,

[0522] through the initial contents of the storage space,

[0523] through the initial contents of the instruction vectors.

[0524] In the case where one or more registers are used, the register transition mapping is adjusted so that it does not alter the contents of the registers accepting input from the host platform. The register machine may come with a list of registers and storage locations that function as outputs to the host platform.

[0525] A computation with this type of register machine is initialized with the following steps:

[0526] 17. The initial values of {right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (C)},{right arrow over (D)} are given. Initial values for one or more storage cells {right arrow over (S)}_({right arrow over (D)}) in S may also be given.

[0527] 18. All the elements in P are given.

[0528] 19. Compute {right arrow over (P)}_({right arrow over (C)}) and {right arrow over (S)}_({right arrow over (D)}.)

[0529] The computation step of this type of register machine consists of the following steps:

[0530] 20. Compute the next instruction pointer: {right arrow over (C)}^(l)=ƒ({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}).

[0531] 21. Compute the next storage pointer: {right arrow over (D)}^(l)=g({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (D)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}).

[0532] 22. Compute the value to be written to the current storage cell: {right arrow over (S)}^(l)=q({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}).

[0533] 23. Compute the register transition mapping: ({right arrow over (R)}_(j) _(l) , . . . ,{right arrow over (R)}_(j) _(k) )=h({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}), where j₁, . . . ,j_(k) specify the registers which the register machine may change.

[0534] 24. Set S_({right arrow over (D)})={right arrow over (S)}⁴⁰ , {right arrow over (C)}={right arrow over (C)}^(′), and {right arrow over (D)}={right arrow over (D)}^(′).

[0535] 25. Compute {right arrow over (P)}_({right arrow over (C)}) and {right arrow over (S)}_({right arrow over (D)}).

[0536] The computation is considered to be ended when the instruction pointer takes on the “end-of-program” value, or when a specified “stop” instruction is encountered, depending on the embodiment.

[0537] This type of register machine may be implemented using either a polynomial or function table representations of the mappings ƒ, g, q, and h. These mappings are multivariate mappings over a finite ring of integers, and may thus be encrypted using any of the previously described methods of encryption. During use, there are no requirements as to when the host platform changes registers accepting input, and no requirements as to when the host platform reads from designated “output” registers/storage cells. This allows computational work to be minimized.

[0538] Embodiment 2: Extends the capabilities of the above register machine, allowing universal (Turing) computation. This type of register machine consists of the same elements as embodiment 1, but has in addition the following:

[0539] 26. The specification of a register dedicated to output of movement direction, in the form of an integer y such that 0<y≦m, and an integer z such that 0<z≦d. The integer y indicates the register, and the integer z, the component in which this movement is stored.

[0540] 27. The specification of a register dedicated as output to a Turing platform.

[0541] 28. The specification of a register dedicated as input from a Turing platform.

[0542] 29. A Turing platform, where each storage unit is a vector in Z_(N) ^(d).

[0543] The computation for this second embodiment of a register machine is identical to the first, except that there is a requirement that the host now also do a Turing platform computation step using the specified registers.

[0544] These register machines are amenable to method of encryption similar to those previously described. This method is difficult to implement with the previously mentioned Mealy-machine and BSS'-machine variants.

[0545] Encryption of register machines uses multivariate mappings. The mappings of the register machine and the mappings used for encryption, may be represented either with polynomials or with function tables. If the mappings are represented using polynomials, N must be a prime number. If the mappings are represented using function tables, N only needs to be big enough to accommodate the abstract machine on which the mappings are based. The encryption technique used is similar to those previously discussed, in that it uses symbolic functional composition to encrypt the mappings used to express the register machine. The difference is that every element read from a register or storage cell is encrypted with a key specific to each register or storage cell. Thus encryption and decryption functions take register number or storage cell index vector as addition parameters. The encryption function for any register number i is r_(i)({right arrow over (R)}_(i)). The decryption function for any register number i is s_(i)({right arrow over (R)}_(i)). The encryption function for any storage cell indexed by {right arrow over (D)} is v({right arrow over (S)}_({right arrow over (D)}),{right arrow over (D)}). The decryption function for any storage cell indexed by {right arrow over (D)} is u({right arrow over (S)}_({right arrow over (D)}),{right arrow over (D)}).

[0546] Prior to encryption, the user selects a subset I⊂S of storage cells to be encrypted. The user also selects a subset J⊂{1, . . . ,m} of registers to encrypt. In one further generalization of this embodiment, it is possible to select storage cells and registers that are decrypted when used as arguments in the mappings ƒ, g, h, and q, but not encrypted when being written to. In such a further generalization, it is also possible to select storage cells and registers that are read as plaintext, but are encrypted when written to.

[0547] The pair (r_(n), s_(n)) for a given n is generated as follows: 1. Two tables are defined, V and U, each with N^(d)×m elements. 2. Set every U(i,j)=−1 for all (i,j) such that 0<i<N^(d) −1 and j∈J. 3. Set every U(i,j)=V(i,j)=i for all (i,j) such that 0<i<N^(d)−1 and j∉J. 4. For every j from 1 to m do the following if j∈J:

[0548] a. For every i from 0 to N^(d) −1 do:

[0549] i. Select arandom b from 0to N^(d)−1 until U(b,j)=−1.

[0550] ii. Set U(b,j)=i and V(i,j)=b.

[0551] If r_(i) and s_(i) are represented as polynomials, r_(i) is interpolated using the elements of V converted to d-vectors, and s_(i) is interpolated using the elements of U converted to d-vectors. If r_(i) is represented as a function table, the function table of r_(i) containing lumped-together arguments and mapping values is set equal to V. Similarly, if s_(i) is represented as a function table, the function table of s_(i) containing lumped-together arguments and mapping values is set equal to U.

[0552] The pair (v,u) is generated as follows: 5. Two tables are defined, V and U. each with N^(d)×|S | elements, where |S| is the number of elements in S. 6. Set every U(i,j)=−1 for all (i,j) such that 0<i<N^(d) −1 and j∈I. 7. Set every U(i,j)=V(i,j)=i for all (i,j) such that 0<i<N^(d) −1 and j∉I. 8. For every j from 1 to |S| do if j∈I:

[0553] a. For every i from 0 to N I do:

[0554] i. Select a random b from 0 to N^(d) until U(b,j)=−1.

[0555] ii. Set U(b,j)=i and V(i,j)=b.

[0556] If v and u are represented as polynomials, v is interpolated using the elements of V converted to d-vectors, and u is interpolated using the elements of U converted to d-vectors. If v is represented using its function table, the table for v with lumped-together arguments and mapping values is set equal to V. Similarly, if u is represented using its function table, the table for u with lumped-together arguments and mapping values is set equal to U.

[0557] Both of the register machine embodiments can be encrypted in the same way. Encryption proceeds as follows: 9. Generate the key pair (v,u), where v, u: Z^(2d) _(N) →Z^(d) _(N). 10. Generate the key pairs (r₁,s_(i)), where r_(i),s_(i): Z^(d) _(N) →Z^(d) _(N). 11. In the mappings f, g, h, and q, for each i∉J, symbolically substitute {right arrow over (R)}_(i) with s({right arrow over (R)}_(i),i). 12. In the mappings f, g, h, and q, symbolically substitute S with u({right arrow over (S)},{right arrow over (D)}. 13. Symbolically compose h with v, giving v(h(. . . ),{right arrow over (D)}). 14. Symbolically compose q with v, giving v(q(. . . ),{right arrow over (D)}).

[0558] Due to the parametrization, a more general type of multivariate encryption is required: parametrized multivariate encryption. The mappings of the register machine may be combined to a mapping H({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}) where the above six conditions merely lay restrictions on the use of parametrized encryption, so that the partially encrypted machine has a chance of working.

[0559] Parametrized multivariate encryption is done using key quadruples (c_(i),g_(i),r_(i),s_(i)) applied to groups of variables and mapping components as for multivariate encryption. This operation can be applied to any mapping: h:Z_(N) ^(d)→Z_(N) ^(e). If the encryption is to be applied when h is a polynomial mapping, N must be a prime number. The number of variables or mapping components grouped together in the i^(th) group is c_(i). There are in all k groups, of which the first l cover the mapping components, and the remaining k-l groups the variables. It is a requirement that Σ_(i=l) ^(l) c_(i)=e, and also a requirement that Σ_(i−l+1) ^(k) c_(i)=d. The set J⊂{1, . . . ,l} specifies the component groups of h that are to be encrypted irrespective of whether that encryption is parametrized or non-parametrized. The set I⊂{l+1, . . . ,k} specifies the variable groups of h that are to be decrypted irrespective of whether that decryption is parametrized or non-parametrized.

[0560] The number g, either gives the index of a group of variables {right arrow over (w)}_(i) (thus being such that l<g_(i)≦k), or is some other value greater than k or less than l (−1 is recommended, if possible), indicating that no such group is referenced. If g_(i) references a group of variables, that group of variables will be used to parametrize either the encryption of the group (if it is a group of mapping components), or the decryption of the group (if it is a group of variables).

[0561] Whenever g_(i) references a group of variables or mapping components, the encryption and decryption keys are mappings on the form: r_(i),s_(i):Z_(N) ^(c) ^(_(i)) ^(+c) ^(_(gi)) →Z_(N) ^(c) ^(_(i)) . Whenever g_(i) does not reference any group, the encryption and decryption keys are mappings on the form: r_(i),s_(i):Z_(N) ^(C) ^(_(l)) →Z_(N) ^(c) ^(_(l)) .

[0562] The resulting encryption algorithm is illustrated for the function table representation by the method “ParamEncrypt” given in the file “CompTable.java” in the source code appendix. The algorithm is very similar to that for multivariate encryption.

[0563] Reserve a temporary table t^(l) _(h) defining a function t_(h) ^(l):Z_(N) _(^(d)) →,Z_(N) _(^(e)) .

[0564] For every i from 1 to k set yi=N^(c) ^(₁) .

[0565] Set z₁ =1.

[0566] For every i from 2 to l set z_(i)=y⁻¹z_(i−1).

[0567] Set z_(l+1)=1.

[0568] For every i from l+2 to k set z_(i)=y_(i−1)z_(i−1).

[0569] Initialize a vector (b₁, . . . ,b_(k-1)) to (0, . . . ,0). This vector represents the k-1 variable blocks, in a base N^(c) ^(₁) representation. For each variable block i: b_(i)=

^(c) ^(₁₊₁) _(j=1)N^(j-1)x_(a+j), where a=

^(i−1) _(j=1)c_(j+l).

[0570] Reserve a vector(b^(l) ₁, . . . , b^(l) _(k−1)).

[0571] For every i from 0 to N^(d)−1 do:

[0572] Set u=0.

[0573] For every j from k to l do:

[0574] if s_(j) is not the identity mapping:

[0575] A. if l<g_(j)≦k

[0576] A. Set m=y_(g) _(j) b_(j-l)+b_(g) _(j) _(-l)

[0577] B. Set b^(/) _(j-l)=r_(j)(m)

[0578] B. otherwise set b^(/) _(j-l)=r_(j)(b_(j-l))

[0579] A. otherwise set b^(/) _(j-l)=b_(j-l).

[0580] B. Multiply u by y_(j).

[0581] C. Add b^(/) _(j-l to u)

[0582] Set t^(/) _(h)(U)=t_(h)(i).

[0583] Increment the vectorized index(b₁, . . . , b_(k-l)), taking into account the different sets from which the individual components may be taken.

[0584] Reserve a vector(b₁, . . . , b_(k-l)).

[0585] Initialize a vector (b^(/) ₁, . . . , b^(/) _(k-l))

[0586] For every i from 0 to N^(d)−1 do:

[0587] Set u=t^(/) _(h)(i).

[0588] Set q=0;

[0589] For every j from l to 1 to:

[0590] A. Set p to the integer result of u/z_(j).

[0591] B. Subtract pz_(j) from u to get the remainder.

[0592] C. Set b_(j)=u.

[0593] D. if r_(j) is not the identity mapping

[0594] A. if l<g_(j)≦k

[0595] A. Set m=y_(g) _(j) b_(j)+b^(/) _(g) _(j) _(-l)

[0596] B. Set b_(j)=r_(j)(m)

[0597] E. otherwise set b_(j)=r_(j)(b_(j))

[0598] F. Add z_(j)b_(j l to q.)

[0599] Set t^(/) _(h)(i)=q.

[0600] Increment the vectorized index (b^(/) ₁, . . . , b^(/) _(k-l)), taking into account the different sets

[0601] from which the individual components may be taken.

[0602] Lastly, copy the function table of t^(/) _(h) to the function table of t_(h).

[0603] Additional more applied and less theoretical examples are provided below with reference to FIGS. 5A-73. An exemplary transition diagram with its corresponding inputs, states, and outputs is illustrated in FIG. 5A. The uppermost state “0” (sometimes referred to as “node ‘0’”) has three possible inputs (i.e., 0, 1 and 2), which cause transitions to states 1, 2, and 0, respectively while outputting symbols 1, 2 and 2, respectively. The corresponding pairs of inputs and outputs are shown in the form input/output, and the state to which the state machine moves as a result of the input is shown by the directional arc (sometimes coming back to the original state). A corresponding function table is illustrated in FIG. 5B with the new states and outputs being shown in parentheses (i.e., in the form (δ,λ)).

[0604] As can be seen, the transition diagram does not include any dedicated state q_(a) that can be used as a stopping state such that an outside observer would know that the calculation has ended, simply by looking at the current state of the machine. Accordingly, such a dedicated state is added so that the machine can signal the end of its computation (to itself and outside observers).

[0605] Conversely, as shown in the transition diagram of FIG. 5C, a node/state 3 is already isolated and may be used as a dedicated state q_(a). (In that exemplary embodiment, when a “1 ” is input in state “2”, the transition is undefined.) Such a state machine includes a function table representation as shown in FIG. 5D (including a corresponding undefined entry).

[0606] Continuing with the example of FIG. 5A, by adding a dedicated state q_(a), and its corresponding arcs for each defined input, the transition diagram of FIG. 6 is created. Such a diagram can be written equivalently as the function table of FIG. 6B in which the dedicated state and the designated output symbol (indicating that the designated state has been entered) are written generically as q_(a) and B, respectively. This addition creates, from an existing domain D, an augmented domain D′ given by: $\begin{matrix} {D^{\prime} = \quad \left\{ {\left( {0,0} \right),\left( {0,1} \right),\left( {0,2} \right),\left( {0,B} \right),\left( {1,0} \right),\left( {1,1} \right),\left( {1,2} \right),\left( {1,B} \right),} \right.} \\ {\left. \quad {\left( {2,0} \right),\left( {2,1} \right),\left( {2,2} \right),\left( {2,B} \right),\left( {3,0} \right),\left( {3,1} \right),\left( {3,2} \right),\left( {3,B} \right)} \right\}.} \end{matrix}$

[0607] Similarly, the example of FIG. 5C can be augmented to include arcs corresponding to designated the isolated node 3 as the dedicated state q., thereby forming the diagram of FIG. 6C and its equivalent function table in FIG. 6D. In light of the fact that the transition is undefined when in state “2” and a “1” is received, the augmented domain corresponding to FIG. 6D is given by: $\begin{matrix} {D^{\prime} = \quad \left\{ {\left( {0,0} \right),\left( {0,1} \right),\left( {0,2} \right),\left( {0,B} \right),\left( {1,0} \right),\left( {1,1} \right),\left( {1,2} \right),\left( {1,B} \right),} \right.} \\ {\left. \quad {\left( {2,0} \right),\left( {2,1} \right),\left( {2,2} \right),\left( {2,B} \right),\left( {3,0} \right),\left( {3,1} \right),\left( {3,2} \right),\left( {3,B} \right)} \right\}.} \end{matrix}$

[0608] As seen in FIG. 7, various vectorizations are possible for the same original input, output and state spaces. In the vectorization example where N≧4, if N is not a prime number, the vectorization should only be used when using function table representations for encryption and computation. Preferably a user's selection of components/vectorizations is maintained between specification and use without the system attempting to perform a remapping.

[0609] As seen in FIGS. 8A-8C, the determination of an exemplary prime number is provided for each of the three illustrated cases of N. Generally, if a polynomial representation is used for FIGS. 8A-8C, N should be a prime number.

[0610] Continuing with the example of FIG. 7B, a prime number, 3, is used and a vectorization corresponding to N=3d is selected in which: Σ′={(0,0), (0,1), (0,2), (1,0)}, Q′={(0,0), (0,1), (0,2), (1,0)}, and Δ′={(0,0), (0,1), (0,2), (1,0)}, such that the table of FIG. 9A can be created by adding dummy states until Q′ contains N²=9 states. That is, starting with the originally defined 4 states, 9-4=5 rows (i.e., 5 nodes/states) are added to FIG. 9A, each with their own corresponding 4 entries per row. This initially leaves undefined all the entries corresponding to the newly added states, as shown in the bottom of FIG. 9A.

[0611] Similarly, having increased the number of states, the number of input symbols and output symbols are adjusted correspondingly. Adding dummy input symbols until Σ′ contains 3²=9 symbols gives Σ′={(0,0), (0,1), (0,2), (1,0), (1,1), (1,2), (2,0), (2,1), (2,2)}. Corresponding dummy symbols can also be added to Δ′ to create Δ′={(0,0), (0,1), (0,2), (1,0), (1,1), (1,2), (2,0), (2,1), (2,2)}. Each of the undefmed entries (including the previously undefined entry corresponding to input (0,1) and state (0,2)) can be filled in with a specified value (e.g., ((1,0),(1,0)) to create the table of FIG. 9B.

[0612] As an alternative to the approach of FIG. 9B, each of the undefined entries that would have otherwise been filled in with a common value can instead be filled in with domain-specific random values. For example, for each entry illustrated in FIG. 10, each “*” can be replaced with a separately selected random number from 0 to 2 (inclusive). This filling out of values randomly includes the previously undefined entry corresponding to input (0,1) and state (0,2).

[0613] As an alternative to generating entries individually, rows of defined entries can be copied for undefined rows. For example, using the vectorization of FIG. 8B, an initial set of entries is generated as shown in FIG. 11A. A non-dedicated row (i.e., a row other than row (1,0)) is selected (e.g., row (0,1)) and used as the source for filling in values in the first undefined row (i.e., row (1,1)).

[0614] Equivalently, the first isolated node (1,1) in the graph of FIG. 11C is selected. The transitions corresponding to node (0,1) are repeated for node (1,1), thereby creating the graph of FIG. 11D. The copying processes of FIGS. 11B and 11D are repeated until all the rows corresponding to the newly created output variables are filled in.

[0615] In addition to the random row copying process that created the function table of FIG. 11B (and which is repeated as FIG. 12A), transitions from the state being copied (q) to itself (q) can randomly be set to point to either q or q′ (the copied version of q). For example, after row (0,1) is copied to row (1,1) as shown in FIG. 12A, the (0,1) entry of row (0,1) can be modified to point to the corresponding (0,1) entry in the newly copied row (1,1). Similarly, transitions in row (1,1) only could have been changed, as could transitions in both rows (0,1) and (1,1) for entries corresponding to entries that point back to themselves within an original row. Equivalent changes are shown in FIGS. 12C and 12D.

[0616] Again returning to the function table of FIG. 11B (which is repeated as FIG. 13A), an existing function table can be modified to switch the labels assigned to any pair of nodes without the loss of generality. For example, state (0,1) can be switched with state (1,0), and in the graphical representation of FIG. 12C would simply require a relabeling of the graph. However, the function table format results in a remapping as shown in FIG. 13B.

[0617]FIG. 14A illustrates the process of interchanging input symbols using the function table of FIG. 13B. By interchanging the columns of inputs (0,2) and (1,0), the function table of FIG. 14A is transformed into the function table of FIG. 14B. (Note that although Σ′=Σ2, other mappings are possible such that the interchange is really a specification of a new input symbol.) Certain other criteria must also be examined, however, to ensure that such an interchange is acceptable. The first criterion is that, if a Mealy machine is to read its own output at some later stage (as is supported by Turing machines), every interchange of input symbols must be accompanied by a corresponding interchange of output symbols. Using the example of FIG. 14A, it would also be necessary to switch the (0,2) and (1,0) output symbols.

[0618] According to the second criterion, any interchange of input symbols must be recorded and stored locally, otherwise the rightful user of the machine may not be able to use it in a meaningful way. Input specifications provided to other parties must also be adjusted accordingly.

[0619] Nonetheless, the third criterion (which acts as an anti-criterion) is that if the interchanges are only done in the dummy symbols, changes do not affect the computation and can be ignored.

[0620] Similar to the process of FIGS. 14A and 14B (and with the same criteria), output symbols can be exchanged in an analogous fashion as shown in FIGS. 15A and 15B. (Note that although Δ′=Δ, other mappings are possible such that the interchange is really a specification of a new output symbol.) By interchanging the (0,2) and (1,0) output symbols, the function table of FIG. 15A becomes 15B.

[0621]FIGS. 16A and 16B illustrate a method of transforming state transition and output mappings of an augmented Mealy machine to polynomial mappings. In the illustrated example, generally states have two components x₁,x₂, and inputs have two components x₃,x4 such that the output mapping has two components λ′₁(x₁, x₂, x₃, x₄) and λ′₂(x₁, x₂, x₃, x₄). Thus, the state transition mapping of the augmented machine has two components: δ′₁(x₁, x₂, x₃, x₄) and δ′₂(x₁, x₂, x₃, x₄). Generally each polynomial interpolation of a mapping component may be visualized as exemplified in FIG. 16B, although FIG. 16B is not intended to be drawn to scale. Thus, the interpolation for any given component is only guaranteed to exist if all components (be they in state, input, or output vectors) can be selected from the set of integers modulo some N, such that (a) N is greater than any possible individual component value as given by the state transition table and (b) N is a prime number.

[0622]FIG. 17 illustrates a method of precomputing the a_(l)(x) functions; given by: ${{a_{i}(x)} = {\left( {\prod\limits_{\underset{i \neq k}{k \in K}}\quad \frac{x - k}{i - k}} \right){modN}}},$

[0623] such that each a_(l)(x) is symbolically constructed only once for the specified set. Those results are represented by their respective arrays of coefficients and can be used to decrease calculation time spent during computation.

[0624]FIG. 18 illustrates a BSS machine to be modified into a BSS' machine under various conditions according to the present invention. Node numbering can be adjusted using the illustrated technique to begin numbering nodes at zero. Having generated a BSS machine according to FIG. 18, the input and output mappings are converted, and a computation mapping g₁ is added to every node that doesn't have one, as shown in FIG. 19. FIG. 20A illustrates a BSS machine resulting from the calculations of FIG. 19. It may, however, be easier to create an equivalent BSS' machine from scratch, such as the five node machine illustrated in FIG. 20B.

[0625] As shown in FIG. 21, the method of transforming a BSS' machine into a single polynomial mapping includes expressing a set membership relation ∈K as a polynomial. The result of symbolically multiplying together (x−i)^((N−1)), for every i ∉ K, modulo N is called b_(K). (Note that zero cannot be a member of K.) Since all K_(lJ) are disjoint, their intersections are empty. Moreover, Δ(i,x) is symbolically calculated according to:

Δ(i,x)=b _(K) _(l,1) (x)n _(i,1) +. . . +b _(K) _(i,J,l) (x)n _(i,j,l)+(1−b _(K() _(l) (x))n ¹¹,

[0626] where b_(K) _(l,J) is the polynomial expression for evaluating the set inclusion relation. The next node function, expressed as a polynomial, combines all the Δ(i,x) according to the a_(l)(x) functions using the domain definition: ${{\beta \left( {n,x} \right)} = {\sum\limits_{i = 0}^{p}\quad {{a_{i}(n)}\Delta \quad \left( {i,x} \right)}}},$

[0627] where p is the number of nodes and N is the size of the field. The computation mappings are similarly combined to produce the computing endomorphism: $\left( {{\beta \left( {n,x_{1}} \right)},{\sum\limits_{i = 0}^{p}{{a_{i}(n)}{g_{i}\left( \overset{\rightarrow}{x} \right)}}}} \right).$

[0628] FIGS. 22A-22C illustrate three consecutive steps in generating keys for univariate encryption of multivariate polynomial mappings. First the elements to be encrypted and decrypted are selected by a user. Generally, elements selected by the user to be encrypted (from within the first “e” elements) are placed in the set J. and variables from elements “e+1” to “e+d” that are selected for decryption are held in set I. To save unnecessary computation, components not in J and variables not in I remain untouched. Keys are only generated in a sufficient number for those components/variables actually affected. The definition of ƒ gives the prime number used in generating key pairs. Key generation begins with the two arrays in FIG. 22A. After one step of the key generation process, the arrays may take on an exemplary form shown in FIG. 22B. After a second step, the exemplary embodiment is shown in FIG. 22C.

[0629]FIG. 23 illustrates an interpolated polynomial (given by the array R) that is used to compute a permutation according to one aspect of the present invention. The inverse is computed in a similar manner using the array S.

[0630] In order to save time (and component complexity), according to one embodiment of the present invention, a number of arithmetic operations are pre-computed. As shown in FIGS. 24A and 24B, it is possible to compute the multiplication and exponentiation of numbers and store the result in a look-up table for later (quick) reference.

[0631] As shown in FIG. 25A, a mapping d can be encrypted into a form h. When encrypting plural variables and mapping components of multivariate polynomials with univariate polynomials, it is possible to utilize constraints on pairs of keys. For example, using a set of function components and variables as shown in FIG. 25B, it is possible to add a constraint that key pairs 1 and e+1 must be identical. Then, as shown in FIG. 25C, selected variables i (from set 1) are then decrypted by symbolically composing them with corresponding inverse permutations s_(e+1). Then function components j (from set J) are encrypted by symbolically composing them with the corresponding permutations r_(J). Generally the result of s_(e+l) and r_(J) yields the resultant partially encrypted h, E_(r,s)∘h.

[0632]FIG. 26A illustrates a partially encrypted E_(r,s)∘h (produced as a result of FIG. 25C) to be used as a starting point in a process of re-encrypting plural variables and mapping components of multivariate polynomials with second univariate polynomials. That partially encrypted result undergoes the process of symbolically re-encrypting plural variables and mapping components of multivariate polynomials with second univariate polynomials as shown in FIG. 26B. Thus, the original encryption in reversed and a new encryption is applied with a new set of keys.

[0633]FIG. 26C illustrates a result of the re-encrypting process of FIG. 26B. Accordingly, a new E_(r,s), ∘h is created which is the same mapping partially encrypted with key pairs (r₁ ^(′), s₁ ⁴⁰) . . . (r_(e+d) ^(′),s_(e+d) ^(′)) instead of with (r₁,s₁) . . . (r_(e+d),s_(e+d)).

[0634]FIGS. 27A and 28A illustrate function tables for f(x₁,x₂)and g(x₁,x₂), respectively that can be used in a symbolic composition of g(ƒ({right arrow over (x)})). Generally, the composition of t_(f) from FIG. 28B and t_(g) from FIG. 28C create the table t_(ƒg) as shown in FIG. 28D. Alternatively, the composition process is shown schematically in FIG. 28E.

[0635] Again assuming a mapping as shown in FIG. 25A, function components selected for encryption are stored in the set J and variables stored for decryption are stored in the set I. As was mentioned in the description of FIG. 22A, to save unnecessary computation, components not in J and variables not in I remain untouched (as is possible in all similar key generation phases). Having started with the arrays of FIG. 29A, a first key generation step os performed, creating an exemplary representation shown in FIG. 29B. Subsequent interpolation of each R/S pair is performed similarly to the interpolation of FIG. 23.

[0636] As with the process of FIG. 25C, FIG. 30 illustrates decrypting selected groups of variables, i, encrypting selected groups of components,j, and creating a partially encrypted result h, E_(r,s)∘h. However, the process of FIG. 30 utilizes multivariate polynomials instead of the univariate polynomials of FIG. 25. In such a case, rather than key pairs being identical for elements 1 and e+1, key triples are identical instead.

[0637] Similar to the starting point, process and result of FIGS. 26A, 26B, and 26C, respectively, FIGS. 31A, 31B, and 31C illustrate the starting point, process and result of re-encrypting plural variables and mapping components of multivariate polynomials. However, in FIGS. 31A, 31B, and 31C, second multivariate polynomials are used in the process. Accordingly, by using key triples, a new E_(r,s)∘h is created which is the same mapping partially encrypted with key triples (c₁, r₁ ^(′), s₁ ^(′)) . . . (c_(k), r_(k) ^(′),s_(k) ^(′)) instead of with (c₁, r₁, s₁) . . . (c_(k),r_(k),s_(k)).

[0638] FIGS. 37A-38C illustrate a method of symbolic composition of two mappings using function tables. For the illustrated composition, e(1,1)=4,e(1,2)=3,e(2,1)=1, and e(2,2)=3. Thus, ƒ's 2 component will “disappear” in the composition and not be used at all. The resulting composition, ƒ(h₁(x₄,x₃), h₂(x₁,x₃)) is given by g(x₁,x₃,x₄). FIG. 37D illustrates an example of computing a composition for an entry (x₁,x₃,x₄)=(0,1,0).

[0639] Similarly, according to FIG. 38A and 38B, a composition g is given by g(x₁,x₂,x₃,x₄)=(h₁(ƒ₁({right arrow over (x)}),ƒ₃(e,rar x)), h₂(ƒ₂({right arrow over (x)}),ƒ₃({right arrow over (x)}))). As a result, for e'(1,1)=1, e'(1,2)=3, e'(2,1)=2, and e'(2,2)=3, an exemplary composition for (x₁,x₂,x₃,x₄)=(0,1,1,1) is illustrated in FIG. 38D.

[0640]FIG. 40 illustrates a method of parameterized encryption of plural variables and mapping components of multivariate mappings with multivariate mappings. Three selection processes occur: (1) groups of variables to be decrypted are selected in either a parameterized or a non-parameterized manner; (2) groups of variables are selected as parameters; and (3) groups of components to be encrypted are selected in either a parameterized or a non-parameterized manner. In such an embodiment, key quadruples are used.

[0641] As referenced by 4001, the inverse permutation s_(l) is symbolically applied to the group of variables, i, selected for non-parameterized decryption. Similarly, at 4002, the inverse permutation, s_(i), indexed by variable block g_(i) is symbolically applied to the group of variables, i, selected for parameterized decryption.

[0642] At 4003, selected groups of components, j, are encrypted by symbolically composing them with the corresponding permutations r_(j). At 4004, selected groups of components, j, are parametrically encrypted by symbolically composing them with the corresponding permutations r_(j), indexed by variable block g_(j). The result is a partially parametrically encrypted h, E_(r,s)∘h.

[0643] Attached hereto as part of the specification is a source code appendix of Java code. Such code is provided as an exemplary embodiment of certain routines related to the present invention and may need modification for certain environments. Such source code is not intended to limit the scope of protection afforded by the claims attached hereto.

[0644] Obviously, numerous modifications and variations of the present invention are possible in light of the above teachings. It is therefore to be understood that, within the scope of the appended claims, the invention may be practiced otherwise than as specifically described herein. 

1. A method creating an augmented Mealy machine from a Mealy machine having an input space Σ, a state space Q and an output space Δ, the method comprising the steps of: A. selecting as a state q_(a) one of (A1) a dedicated output stopping state from the state space θ that is not reachable from any other state in Q such that Q′=Q and (A2) an additional stopping state not in θ if no dedicated output stopping state exists in Q such that Q′=Q∪{q_(a)}; B. setting Δ′=Δ and adding a dedicated blank symbol B to Δ′ only if Δ does not already contain a dedicated blank symbol B; C. modifying the state-transition mapping δ to δ′ such that the augmented Mealy machine always remains in q_(a) once q_(a) is entered; D. modifying the output mapping λ to λ′ such that the augmented Mealy machine always outputs B once q_(a) is entered; and E. modifying a domain D of the state-transition mapping.
 2. The method as claimed in claim 1, further comprising the steps of: F. selecting an integer N′ based on the size of the state, input, and an output spaces; G. selecting a number N. no less than N′; and H. determining a vectorization of input, state, and output spaces resulting in vectors over Z_(N), wherein N is prime if the Mealy machine is represented using polynomials.
 3. The method as claimed in claim 2, further comprising the steps of: F. adding dummy states until Q′ contains a number of states determined by a vectorization of the state space using N; G. adding dummy input symbols until Σ′ contains a number of symbols determined by the vectorization of the input space using N; H. adding dummy output symbols until Δ′ contains a number of symbols determined by the vectorization of the output space using N; I. for each pair (q,σ)∉D^(l), setting δ′(q,σ)=q_(a) and λ′(q,σ)=B.
 4. The method as claimed in claim 2, further comprising the steps of: F. adding states until Q′ contains a number of states determined by the vectorization of the state space using N according to the sub-steps of: i. selecting a random q∈Q (alternatively in the current Q′-{q_(a}),) ii. adding a state q′ to Q′, iii. for every σ∈Σ setting δ′(q′,σ)=δ′(q,σ) and λ′(q′,σ)=λ′(q,σ), iv. optionally also for every pair (q,σ)∈Q′×Σ such that δ′(q,Σ)=q, randomly setting δ′(q,σ) to be one of q and q′ and randomly setting δ′(q′,σ) to be one of q and q′; G. modifying D to D′ to reflect the addition of the new definitions; H. adding dummy input symbols to Σ until it contains a number of symbols determined by the vectorization of the input space using N; I. adding dummy output symbols to Δ until it contains a number of symbols determined by the vectorization of the output space using N; J. for each pair (q,σ)∉D′, setting δ′(q,σ) to a random q′∈Q′ and setting λ′(q,σ) to a random symbol from Δ′.
 5. The method as claimed in claim 2, further comprising the steps of: F. adding dummy states until Q′ contains a number of states determined by the vectorization of the state space using N; G. adding dummy input symbols until Σ contains a number of symbols determined by the vectorization of the input space using N; H. adding dummy output symbols until Δ contains a number of symbols determined by the vectorization of the output space using N; I. for each pair (q,σ)∈D′, setting δ′(q,σ) to a random q′∈Q′, setting λ′(q,σ) to a random output symbol in Δ.
 6. The method as claimed in claim 1, further comprising the step of: F. interchanging states at random, and adjusting δ′ and λ′accordingly; G. interchanging symbols in the extended input alphabet Σ′, and adjusting δ′ and λ′ accordingly; and H. interchanging symbols in the extended output alphabet Δ′, and adjusting δ′ and λ′ accordingly.
 7. A method of transforming state-ransition and output mappings of an augmented Mealy machine to polynomial mappings, the method comprising the steps of: computing interpolations of δ′ and λ′ from the state-transition and output mappings; and performing polynomial interpolation of the original state-transition and output mappings.
 8. The method as claimed in claim 7, further comprising the step of pre-computing coefficients of a_(l)(x) functions, wherein the step of performing polynomial interpolation of the original mappings uses the pre-computed coefficients of the a_(l)(x) functions.
 9. A method of converting a Blum-Shub-Smale machine to a BSS' machine, comprising: A. selecting an integer N such that: (1) N is at least as large as the number of nodes, (2) N is greater than user-specified constants used in defining the Blum-Shub-Smale machine, (3) N is a prime number; B. restricting a ring R to only integer fields of a form

_(N); C. restricting computation mappings to only polynomial mappings; D. providing a new node-numbering convention; E. changing comparisons in branch nodes to set membership relations of the form ∈K, where K⊂(

_(N)−{0}); F. revising a definition of a full state space to include a current node number, an internal state space, and output and input spaces to produce a revised full state space; G. restricting computation mappings, g_(n), to an identity mapping for input components of a revised full state vector; H. restricting all computation mappings, g_(n), such that no output components in the full state vector may be used in further computation; I. requiring that at least one computation mapping uses at least one input vector component; J. requiring that all halting nodes generate output; and K. restricting node to (1) computation nodes, which may contain at least one of computations and branches, and (2) halting nodes.
 10. A method of specifying a BSS' machine, comprising the steps of: A. specifying a set of nodes; B. specifying computation mappings for each node; C. specifying a next-node function β, along with set membership relations; D. selecting an integer N such that: (1) N is at least as great as a number of nodes, (2) N is greater than user-specified constants used in defining a corresponding Blum-Shub-Smale machine, and (3) N is a prime number; and E. specifying a vectorization of the state, input, and output spaces.
 11. The method as claimed in claim 9, further comprising at least one of the steps of: listing explicity the halting nodes of the BSS' machine; and explicitly specifying an output symbol B as a halting signal
 12. The method as claimed in claim 10, further comprising at least one of the steps of: listing explicity the halting nodes of the BSS' machine; and explicitly specifying an output symbol B as a halting signal.
 13. A method of transforming a BSS' machine to a multivariate polynomial mapping, comprising the steps of: A. acquiring a specification of a BSS' machine; B. expressing a set membership relation ∈K, K⊂(

_(N)−{0}), as a polynomial; C. expressing a next-node function β as a polynomial; and D. expressing a complete computing endomorphism H as a multivariate polynomial mapping.
 14. A method of transforming a BSS' machine to a mapping represented as a function table, comprising the steps of: A. selecting a specification of a BSS' machine if no single multivariate polynomial computing endomorphism H is given; B. selecting a multivariate polynomial mapping H for the BSS' machine; C. converting state and input vectors, both with base-N components, to a base N^(1+S+I) number X, where 1+S+I is a total number of components in the state and input vectors, wherein the state vector includes a node number; D. converting the output of the computing endomorphism Hwith base-N components, to a base N^(1+S+O) number F, where 1+S+O is the total number of components in the output of H; E. inserting F into the X^(th) entry in the function table; and F. repeating steps (C)-(E) for all possible state vector/input vector combinations.
 15. A method of computing with a BSS' machine transformed to a multivariate mapping comprising the steps of: A. initializing the BSS' machine; B. applying the multivariate mapping to the full state space vector; C. checking if the machine has halted, and ending computation if the machine has halted; and D. repeating steps (B) and (C) if the machine has not halted.
 16. The method as claimed in claim 15, wherein the step of applying further comprises at least one of (1) reading the output vector produced by the machine and (2) changing the input vector of the machine.
 17. The method as claimed in claim 15, wherein the step of initializing comprises the sub-steps of (1) specifying a node number; (2) specifying a remaining initial state vector; and (3) specifying an initial input vector.
 18. A method of specifying a pattern of encryption of multivariate mappings with univariate mappings comprising the steps of: A. specifying a number d of variables of the multivariate mapping; B. specifying a number e of mapping components of the multivariate mapping; C. selecting variables to be used in encrypted form; D. selecting mapping components to be encrypted; and E. selecting equality restrictions to be placed on components in the key pairs.
 19. A method of generating keys for univariate encryption of multivariate mappings, comprising the steps of: A. determining a key representation; B. acquiring a specified pattern of encryption; C. determining a number of key pairs to be generated from an acquired pattern of encryption; and D. permuting elements of field

_(N) while simultaneously recording data for the permutation and its inverse in two arrays R and S once for each unique key pair generated.
 20. The method as claimed in claim 19, wherein the multivariate mappings to be encrypted are expressed using polynomials, further comprising the step of computing the permutation and its inverse by interpolation, using a_(l)(x); once for each unique key pair that is to be generated.
 21. The method as claimed in claim 19, wherein the multivariate mappings to be encrypted are expressed using polynomials, further comprising the steps of: precomputing arithmetic operations over the field

_(N); and precomputing coefficients of functions a,(x), wherein the step of computing the permutation and its inverse by interpolation uses the precomputed coefficients of functions a_(l)(x) and the precomputed arithmetic operations.
 22. The method as claimed in claim 19, wherein the steps of determining a number of key pairs further comprises the step of restricting possible keys according to a user input.
 23. The method as claimed in claim 19, further comprising the step of setting keys in the key pairs, that are neither to encrypt nor decrypt, to the identity mapping.
 24. A method of encrypting plural variables and mapping components of multivariate mappings, represented, with univariate mappings of an appropriate representation, comprising the steps of: A. determining a representation for the encryption; B. replacing each variable to be decrypted x_(l) with a decrypted equivalent s_(e+l)(x_(l)); C. composing the decrypted equivalents with a mapping h; and D. composing each mapping component to be encrypted, h_(i), with an encryption function r_(l), to create r_(l)(h_(l)( . . . )).
 25. The method as claimed in claim 24, wherein the multivariate mappings comprise mappings represented as one of function tables and polynomials.
 26. A method of generating re-encryption keys for re-encryption of plural variables and mapping components of multivariate mappings, already partially encrypted with first univariate functions, with second univariate functions, comprising the steps of: A. determining a representation for the re-encryption; B. acquiring key pairs corresponding to the first univariate functions; C. generating a new set of key pairs (r₁ ^(′),s₁ ^(′)), . . . , (r_(n+m) ^(′),s_(n+m) ^(′)); D. symbolically composing r_(i) ^(′) with s_(i) for 1≦i≦n; and E. symbolically composing r_(i) ^(′) with s_(i) for 1≦i≦n+m.
 27. The method as claimed in claim 26, further comprising the step of acquiring a pattern of encryption used for the first univariate functions, wherein the step of generating comprises generating the new set of key pairs based on the acquired pattern.
 28. A method of re-encryption of plural variables and mapping components of multivariate mappings already partially encrypted with first univariate functions with second univariate functions, comprising the steps of: A. determine a representation for re-encryption; B. symbolically substituting the i^(th) variable x_(i−n) with r_(l)(s_(i) ^(′)(x_(l−n))) for all n<i≦n+m; and C. symbolically composing r_(l) ^(′) (s_(l)(x)) with the i^(th) function component ƒ, for all 1≦i≦n.
 29. The method as claimed in claim 28, further comprising the step of acquiring a corresponding set of pairs of re-encryption keys, wherein the step symbolically composing comprises composing using the acquired keys.
 30. A method of converting a mapping t:Z_(N) ^(m)→Z_(N) ^(n), given as a function table, into a function t′:Z_(N) _(^(m)) →Z_(N) _(^(n)) , also given as a function table, comprising the steps of: A. computing X=N^(m−1)x_(m)+. . . +N¹x_(x)+x₁ for a vector (x₁, . . . ,x_(m))∈Z_(N) ^(m); B. computing F=N^(n−1)ƒ_(n)+. . . +N¹ƒ₂+ƒ₁ for an entry (ƒ₁, . . . ,ƒ_(n)) corresponding to (x₁, . . . ,x_(m)); C. setting t′(X)=F; and D. repeating for all (x₁, . . . ,x_(m))∈Z_(N) ^(m).
 31. A method of converting a function t:Z_(N) _(^(m)) →Z_(N) _(^(n)) , given as a function table, into a function t′:Z_(N) ^(m)→Z_(N) ^(n), also given as a function table, comprising the steps of: A. computing X=N^(m−1)x_(m)+. . . +N¹x₂+x₁ B. reducing t(X) to a base-N representation, such that t(X) is represented by a tuple (ƒ₁, . . . ,ƒ_(n)); C. setting the tuple in t^(l), indexed by (x₁, . . . ,x_(m)) to (ƒ₁, . . . , ƒ_(n)); and D. repeating for all (x₁, . . . ,x_(m))∈Z_(N) ^(m).
 32. A method of symbolically composing mappings ƒ:Z_(N) ^(m)→Z_(N) ^(n) and g:Z_(N) ^(n)→Z_(N) ^(o) represented as function tables to produce the function table for g(ƒ(x)), comprising the steps of: A. generating a new function tƒ:Z_(N) _(^(m)) →Z_(N) _(^(n)) represented by a function table, where every mapping value (ƒ₁, . . . ,ƒ_(n)) corresponding to a (x₁, . . . , x_(m)) is placed in entry number X=N^(m−1)x_(m)+. . . +N¹x₂+x₁ as the number F=N^(n−1)ƒ_(n)+. . . +N¹ƒ₂+ƒ₁; B. generating a new function t_(g):Z_(N) _(^(m)) →Z_(N) _(^(n)) represented by a function table, where every mapping value (ƒ₁, . . . ,ƒ_(n)) corresponding to a (x₁, . . . ,x_(m)) is placed in entry number X=N^(m−1)x_(m)+. . . +N¹x₂+x₁ as the number F=N^(n−1)ƒ_(n)+. . . +N¹ƒ₂+ƒ₁; and C. for each X from 0 to N^(m)−1 setting t_(gf)(X)=t_(g)(t_(ƒ)(X)), where t_(gf) is a function table for a function t_(gf):Z_(N) _(^(m)) →Z_(N) _(^(n)) .
 33. A method of specifying a pattern of encryption of multivariate mappings with other multivariate mappings comprising the steps of: A. selecting a number of mapping components c_(i) to be grouped together, c_(i)≧1, for in all l successive groups of components, covering all components in a mapping only once; B. selecting a number of variables c_(i) to be grouped together, c_(i)≧1, for in all k−l successive groups of variables, covering all variables in a mapping only once; C. selecting groups of components to be encrypted; D. selecting groups of variables to be used in encrypted form; and E. selecting equality restrictions to be placed on components in the key triples.
 34. A method of generating keys for multivariate encryption of multivariate mappings, comprising the steps of: A. determining a representation for the keys; B. defining for an i^(th) key triple two temporary N^(C) ^(_(i)) ×(c_(i)+1) arrays R and S; C. defining a temporary polynomial ƒto translate from base-N vectors to base-N^(C) ^(_(l)) vectors with c_(i) components; and D. permuting a ring Z_(N) _(^(C)) ,, and simultaneously translating a permutation and its inverse to a field Z_(N) ^(c) ^(_(l)) for every key triple; E. repeating steps B-D for all triples not set equal to identity.
 35. The method as claimed in claim 34, wherein the mappings to be encrypted are expressed using polynomials, further comprising the step of computing the permutation and its inverse by interpolation, using at least a portion of R and S as interpolation data, using a_(l)(x), once for each unique key triple that is to be generated.
 36. The method as claimed in claim 34, further comprising the step of setting all key triples that are to do neither encryption nor decryption to the identity mapping.
 37. The method as claimed in claim 34, further comprising the steps of (1) pre-computing arithmetic operations over the field Z_(N) and (2) pre-computing coefficients of the functions a_(j)(x), wherein the steps of permuting comprises using the pre-computed a_(j)(x).
 38. The method as claimed in claim 34, further comprising the step of restricting a new set of key triples based on a pattern of encryption used during an encryption of the first multivariate polynomials.
 39. A method of encrypting plural groups of variables and groups of mapping components of multivariate mappings, with other multivariate mappings, comprising the steps of: A. determining a mapping representation for encryption; B. replacing each group of encrypted variables {right arrow over (w)}_(l) , with a decrypted equivalent s_(i+l)({right arrow over (w)}_(l)); C. composing each of the decrypted equivalents with a mapping h; and D. composing each group of mapping components to be encrypted v_(l) with r_(l) giving r_(l)(v_(l)( . . . )).
 40. A method of generating re-encryption keys for re-encryption of plural variables and mapping components of multivariate mappings already partially encrypted with first multivariate mappings with second multivariate mappings comprising the steps of: A. determining a representation for keys; B. acquiring key triples used with the first multivariate mappings; C. generating a new set of key triples (c₁ ^(′),r₁ ^(′),s₁ ^(′)), . . . ,(c_(k) ^(′),r_(k) ^(′),s_(k) ^(′)); D. symbolically composing r_(l) ^(l) with s_(i) for 1≦i≦l; and E. symbolically composing r_(i) with s_(i) ^(l) for l<i≦k.
 41. The method as claimed in claim 40, wherein the multivariate mappings comprise one of polynomials and function tables.
 42. A method of re-encrypting plural variables and mapping components of multivariate mappings already partially encrypted with first multivariate mappings with second multivariate mappings, the method comprising the steps of: A. determining a representation for the re-encryption; B. acquiring key triples used for the encryption using the first multivariate mappings; C. symbolically substituting an i-l^(th) variable block {right arrow over (w)}_(i−l) with r_(i)(s_(i) ^(′)({right arrow over (w)}_(i−l))), for all l<i≦k; and D. symbolically composing r_(i) ^(′)(s_(i)({right arrow over (w)})) with an i^(th) function component block {right arrow over (v)}_(i) for all 1≦i≦l.
 43. A method of symbolically composing mappings ƒ:Z_(N) ^(m)→Z_(N) ^(n) and h₁, . . . ,h_(k):Z_(N) ^(c) ^(_(l)) →Z_(N) ^(c) ^(_(i)) , represented as function tables, to produce the function table for ƒ(h₁(x₁, . . . ,x_(c) _(l) ),h₂(x_(c) _(l) ₊₁, . . . ,x_(c) ₁ _(+c) ₂ ), . . . ,h_(k)(x_(m−c) _(k) ₊₁, . . . ,x_(m))), comprising the steps of: A. acquiring a specification for the c_(i) such that Σ_(i=1) ^(k) c_(i)=m; B. generating a new function t_(ƒ:Z) _(N) _(^(m)) →Z_(N) _(^(n)) represented by a function table, where every mapping value (ƒ₁, . . . ,ƒ_(n)) corresponding to a (x₁, . . . ,x_(m)) is placed in entry number X=N^(m−1)x_(m)+. . . +N¹x₂+x₁ as the number F=N^(n−1)ƒ_(n)+. . . +N¹ƒ₂+ƒ₁; C. for each i generating a new function t_(h,i):Z_(N) _(^(c)) _(l)→Z_(N) _(^(c)) _(l) represented by a function table where every mapping value (h_(i,l), . . . ,h_(i,c)) corresponding to a (x_(a+1), . . . ,x_(a+c) _(l) ), where a=Σ_(j=1) ^(i−1) c_(i), is placed in entry number X=N^(C) ^(_(l)) ⁻¹x_(a+c) _(l) +. . . +N¹x_(a+2)x_(a+1) as the number H=N^(c) ^(_(l)) ⁻¹h_(i,c) _(l) +. . . +N¹h_(1,2)h_(i,1). D. initializing a new function table for a function t_(ƒh):Z_(N) _(^(m)) →Z_(N) _(^(m)) ; E. for every i from 1 to k setting y_(i)=N^(C) ^(_(i)) ; F. for every i from 0 to N^(m)-1: i. setting u=0; ii. for every j from k to 1 setting u=y _(j)u+t_(ƒh)(b_(j)); iii. setting t_(ƒh)(i)=t_(ƒ)(u); and iv. incrementing the vectorized index (b₁, . . . ,b_(k)), taking into account that b₁ is in base y₁, b₂ is in base y₂, . . . , b_(k) is in base y_(k).
 44. A method of symbolically composing mappings ƒ:Z_(M) ^(m)→Z_(N) ^(n) and h₁, . . . ,h_(k):Z_(N) ^(C) ^(_(l)) →Z_(N) ^(C) ^(_(l)) represented as function tables to produce the function table for (h₁(ƒ₁(x₁, . . . ,x_(m)), . . . ,ƒ_(c) ₁ (x₁, . . . ,x_(m))), . . . ,h_(k)(ƒ_(n−c) _(k) ₊₁(x₁, . . . ,x_(m)), . . . ,ƒ_(n)(x₁, . . .,x_(m)))), comprising the steps of: A. acquiring a specification for the c_(i) such that Σ_(i=1) ^(k) c_(i)=n; B. generating a new function t_(ƒ):Z_(N) _(^(m)) →Z_(N) _(^(n)) represented by a function table, where every mapping value (ƒ₁, . . . ,ƒ_(n)) corresponding to a (x₁, . . . ,x_(m)) is placed in entry number X=N^(m−1)X_(m) +. . . +N¹x₂+x₁ as the number F=N^(n−1)ƒ_(n)+. . . +N¹ƒ₂+ƒ₁; C. for each i generating a new function t_(h,i):Z_(N) _(c) _(l)→Z_(N) _(^(c)) _(l) represented by a function table where every mapping value (h_(i,1), . . . ,h_(i,c)) corresponding to a (ƒ_(a+1), . . . ,ƒ_(a+c) _(l) , where a=_(j=1) ^(i−1) c_(i), is placed in entry number X=N^(c) ^(_(i)) ⁻¹ƒ_(a+c) +. . . +N¹ƒ_(a+2)+ƒ_(a+1) as the number H=N^(c) ^(_(i)) ⁻¹h_(i,c) _(i) +. . . +N¹h_(i,2)+h_(i,1). D. initializing a new function table for a function t_(hƒ):Z_(N) _(^(m)) →Z_(N) _(^(m)) ; E. setting y₀ =1, y₁=1; F. for every i from 2 to k setting y₁=y_(i−1)N^(C) ^(_(i−1)) ; G. initializing a vector (b₁, . . . , b_(k)) to (0, . . . ,0); H. for every i from 0 to N^(n)−1: i. setting u=t_(ƒ)(i); ii. setting q=0; iii. for every j from k to 1: a. setting p to the integer result of u/y_(j); b. setting u=u−py_(j) to get the remainder; c. setting p to the integer result of u/y_(j−1); d. setting b_(j)=t_(hj)(p); e. adding y_(j)b_(j) to q; and iv. setting t_(hƒ)(i)=q.
 45. A Turing platform, supporting unencrypted and partially encrypted polynomial computation for some machine M, on a host

, comprising: A. a Turing machine; B. a register writeable by a finite control of the Turing machine and readable by M; C. a register readable by the finite control of the Turing machine and writeable by M; D. a register writeable by the host

; and E. a register readable by the host

.
 46. A method of computing with host

running a Turing platform T supporting at least one of a Mealy or BSS' machine M, comprising: A. initializing the machine; B. initialize the Turing platform; C. reading, by T, a storage cell at which its finite control is located; D. writing, by T, a contents of the storage cell to a register readable by M; E. writing, by

, to a remaining input of M; F. executing, by

, one computation step for M; G. writing, by

, some output of Mto part of the register readable by T; H. writing, by

, M's computed direction of movement for the finite control of T to a remainder of register readable by T; I. writing, by

, a rest of the output of M to the host

; J. reading, by T, from the readable register of T; K. writing, by T, a new cell value to storage; L. moving the finite control of T one of left, right, and not at all; M. checking by

to see if a halting condition has occurred; and N. repeating steps (C)-(M).
 47. The apparatus of a register machine, comprising: A. a set P=of vectors of integers in Z_(N) ^(d) indexed by vectors also in Z_(N) ^(d); B. either a vector S indicating the end of the program in P, or a constant T, which functions as an instruction indicating that the computation is finished; C. a vector {right arrow over (C)}∈Z_(N) ^(d) functioning as instruction pointer; D. a set S={{right arrow over (S)}_((i) _(l) _(, . . . , i) _(d) ₎} of vectors of integers in Z_(N) ^(d) indexed by vectors also in Z_(N) ^(d); E. a vector {right arrow over (D)}∈Z_(N) ^(d) functioning as storage pointer; F. at least one register ({right arrow over (R)}₁, . . . , {right arrow over (R)}_(m)) of vectors of integers in Z_(N) ^(d) for 0<m≦N; G. a next instruction pointer mapping ƒ({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(n) ^(d); H. a next storage pointer mapping g({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m){right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}), {right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(d); I. a specification of the registers that accept input from the host platform; J. a number k of registers not accepting input from the host platform, such that 0≦k≦m; K. a register transition mapping h({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(kd) ; L. a storage transition mapping q({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}):Z_(N) ^(d(m+4))→Z_(N) ^(d); M. a specification for initializing P and S; and N. a specification for where input is entered, including: through at least one register, through at least one storage space S, through an initial contents of an instruction space P, or through an initial contents of the at least storage space S.
 48. A method of initializing a register machine comprising the steps of: A. specifying initial values of {right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (C)},{right arrow over (D)}; B. optionally specifying values for at least one storage cell {right arrow over (S)}_({right arrow over (D)}) in S; C. specifying {{right arrow over (P)}_((i) _(l) ^(, . . . , i) _(d) ⁾} elements in P; and D. computing values of {right arrow over (P)}_({right arrow over (C)}) and {right arrow over (S)}_({right arrow over (D)}).
 49. A method of using a register machine, comprising the steps of: A. initializing the register machine; B. computing a next instruction pointer: {right arrow over (C)}^(l)=ƒ({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}){right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}); C. computing a next storage pointer: {right arrow over (D)}^(l)=g({right arrow over (R)}₁, . . . , {right arrow over (R)}_(m), {right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}); D. computing a value to be written to a current storage cell: {right arrow over (S)}^(l)=q({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}); E. computing the register transition mapping: ({right arrow over (R)}_(j) ₁ , . . . ,{right arrow over (R)}_(j) _(k) )=h({right arrow over (R)}₁, . . . , {right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}), where j₁, . . . ,j_(k) specify the registers which the register machine may change; F. setting {right arrow over (S)}_({right arrow over (D)})={right arrow over (S)}^(l), {right arrow over (C)}={right arrow over (C)}^(l), and {right arrow over (D)}={right arrow over (D)}^(l); G. computing {right arrow over (P)}_({right arrow over (C)}) and {right arrow over (S)}_({right arrow over (D)}) using input from a host; and H. repeating steps (B)-(G) until a halting condition is satisfied.
 50. The method as claimed in claim 48, further comprising: I. specifying a register dedicated to output of movement direction, using an integer y such that 0<y≦m, and an integer z such that 0<z≦d; J. specifying a register dedicated as output to a Turing platform; and K. specifying a register dedicated as input from a Turing platform, wherein each storage unit is a vector in Z_(N) ^(d).
 51. A method of using a register machine Mon a host

comprising the steps of: A. initializing a register machine; B. initializing a Turing platform; C. reading, by T, a storage cell at which its finite control is located; D. writing, by T, a contents of the storage cell to a specified register of M; E. writing, by

, to a remaining specified input registers of M; F. computing the next instruction pointer: {right arrow over (C)}^(l)=ƒ({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}); G. computing the next storage pointer: {right arrow over (D)}^(l)=g({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}); H. computing the value to be written to the current storage cell: {right arrow over (S)}^(l)=q({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}); I. computing the register transition mapping: ({right arrow over (R)}_(j) ₁ , . . . ,{right arrow over (R)}_(j) _(k) )=h({right arrow over (R)}₁, . . . ,{right arrow over (R)}_(m),{right arrow over (P)}_({right arrow over (C)}),{right arrow over (S)}_({right arrow over (D)}),{right arrow over (C)},{right arrow over (D)}), where j₁, . . . , j_(k) specify the registers which the register machine may change; J. setting {right arrow over (S)}_({right arrow over (D)})={right arrow over (S)}^(l), {right arrow over (C)}={right arrow over (C)}^(l), and {right arrow over (D)}={right arrow over (D)}^(l); K. computing {right arrow over (P)}_({right arrow over (C)}) and {right arrow over (S)}_({right arrow over (D)}); L. reading, by T, from the readable register of M; M. writing, by T, a new cell value to storage; N. reading, by T, from a second readable register of M its direction of movement; O. moving the finite control of T one of left, right, and not at all; P. checking by

to see if a halting condition has occurred; and Q. repeating steps (C)-(P).
 52. A method of symbolically composing ƒ:Z_(N) ^(m)→Z_(N) ^(n) with h₁, . . . ,h_(k):Z_(N) ^(d) ^(_(j)) →Z_(N) ^(c) ^(_(i)) , producing the mapping ƒ(h₁(x_(e(1,1)), . . . ,x_(e(1,d) ₁₎ ), . . . ,h_(k)(x_(e(k,1)), . . . ,x_(e(k,d) _(k)) )), Σ_(i=1) ^(k) c_(i)=m, comprising the steps of: A. acquiring a specification of index selections e(1,1), . . . ,e(1,d₁), . . . ,e(k,1), . . . ,e(k,d_(k)) deciding how variables are used in the composition; B. initializing a vector (a₁, . . . ,a_(m)) to (0, . . . ,0); C. performing, for every i from 0 to N^(m)−1
 1. For every j from k to 1 compute h_(j)(a_(e(j,1)), . . . ,a_(e(j,d) _(j)) ) do: a. setting t_(ƒh)(a₁, . . . ,a_(m))=ƒ(h₁, . . . ,h_(k)); b. increment a vectorized index (a₁, . . . ,a_(m)).
 53. A method of symbolically composing h₁, . . . ,h_(k) with ƒ producing the mapping (h₁)(ƒ_(e) ^(l)(1,1)(x₁, . . . ,x_(m)), . . . ,ƒ_(e) ^(l)(1,c ₁ ₎(x₁, . . . ,x_(m)),x_(e(1,1)), . . . x_(e(1,d) ₁ ₎), . . . , h_(k)(ƒ_(e) ^(l)(k,1)(x₁, . . . ,x_(m)), . . . ,ƒ_(e) ^(l)(k,c _(k) ₎(x₁, . . . ,x_(m)),x_(e(k,l)), . . . ,x_(e(k,d) _(k) ₎)), comprising the steps of: A. acquiring a specification of index selections e′(1,1), . . . ,e′(1,c₁), . . . ,e′(k,1), . . . , e′(k,c_(k)) deciding how mapping components are used in the composition; B. acquiring a specification of index selections e(1,1), . . . ,e(1,d₁), . . . ,e(k,1), . . . ,e(k,d_(k)) deciding how variables are used; C. setting a vector (a₁, . . . ,a_(m)) to (0, . . . ,0). D. For every i from 0 to N^(m)−1 do:
 1. For every j from k to 1 compute h_(j)(ƒ_(e) ^(l)(j,1), . . . ,ƒ_(e) ^(l)(j,cJ),x_(e(j,1)), . . . ,x_(e(j,dj))); a. Setting t_(hη)(a₁, . . . ,a_(m))=(h₁, . . . , h_(k)). b. Increment the vectorized index (a₁, . . . ,a_(m)).
 54. A method of specifying a pattern of parametrized encryption of multivariate mappings with other multivariate mappings comprising the steps of: A. selecting a number of mapping components c_(i) to be grouped together, c_(i)≧1, for all l successive groups of components, covering all components in a mapping only once; B. selecting a number of variables c_(i) to be grouped together, c_(i)≧1 , for all k−l successive groups of variables, covering all variables in a mapping only once; C. selecting a group of variables g_(l), l<g_(i)≦k, to be used as “parameter” , or explicitly selecting no such “parameter” for all k successive groups of components and variables; D. selecting groups of mapping components to be encrypted; E. selecting groups of variables to be used in encrypted form; and F. selecting equality restrictions to be placed on components in the key quadruples.
 55. A method of generating keys for parametrized multivariate encryption of multivariate mappings, comprising the steps of: A. determining an appropriate representation for the keys; B. defining for an i^(th) key quadruple that is to do parametrized encryption/decryption two temporary N^(c) ^(_(i)) ^(+c) ^(_(gi)) ×(c_(i)+1) arrays R and S; C. defining for an i^(th) key quadruple that is to do non-parametrized encryption/decryption two temporary N^(c) ^(₁) ×(c_(i)+1) arrays R and S; D. repeating steps (A)-(C) for all i quadruples; E. defining a temporary polynomial ƒto translate from base-N vectors to base-N^(c) ^(_(l)) with c_(i) components; F. permuting a ring Z_(N) _(^(C)) _(l), and simultaneously translating the permutation and its inverse to the field Z_(N) ^(C) ^(_(l)) ; G. repeating step (F) in all N^(C) ^(_(gl)) times while recording data, for key quadruples that are to do parametrized encryption/decryption; and H. repeating steps (E)-(G) of generating permutations for every key quadruple.
 56. The method as claimed in claim 55, wherein the mappings to be encrypted are expressed using polynomials, further comprising the step of computing encryption and decryption mappings by interpolation, using at least a portion of R and S as interpolation data and using a_(l)(x), once for each unique key quadruple that is to be generated.
 57. The method as claimed in claim 55, further comprising the step of restricting a new set of key quadruples according to a pattern used for encryption.
 58. The method as claimed in claim 55, further comprising the step of setting all key quadruples that are to do neither encryption nor decryption to the identity mapping.
 59. A method of encrypting multivariate mappings with parametrized multivariate mappings, comprising the steps of: A. determining appropriate mapping representation for the encryption; B. symbolically substituting each group of variables {right arrow over (w)}_(i−l) to be decrypted in a parametrized manner with s_(i)({right arrow over (w)}_(i−l),{right arrow over (w)}_(gi−l)); C. symbolically substituting each group of variables {right arrow over (w)}_(i−l) to be decrypted in a non-parametrized manner with s_(i)({right arrow over (w)}_(i−l)); D. symbolically composing each group of mapping components {right arrow over (v)}_(i) to be encrypted in a parametrized manner with r_(i)({right arrow over (v)}_(i),{right arrow over (w)}_(g−l)); and E. symbolically composing each group of mapping components {right arrow over (v)}_(i) to be encrypted in a non-parametrized manner with r_(i)({right arrow over (v)}_(i)).
 60. A method of specifying an encryption pattern for parametrized encryption of a register machine, comprising the steps of: A. defining a pattern of parametrized encryption; B. setting all c_(i)=d for a mapping doing computations of the register machine; C. marking at least one register affected by a register transition mapping as plaintext registers; D. marking a next instruction pointer and next storage pointer mappings as plaintext mappings; E. marking key quadruples for the marked registers as not to be encrypted/decrypted; F. marking the register transition mapping for non-parametric encryption; G. marking the storage cell mapping q for parametric encryption; and H. marking at least one “cell” in the storage space as plaintext “cells”.
 61. A method of key generation for parametrically encrypting a register machine, comprising the steps of: A. determining a representation for keys; B. defining, for a key quadruple that is to do parametrized encryption/decryption on storage cells, two temporary N^(d+d)×(d+1) arrays R and S; C. defining for an in key quadruple that is to do non-parametrized encryption/decryption on register variables two temporary N^(d)×(d+1) arrays R and S; D. defining a temporary polynomialfto translate from base N^(d) to base-N vectors with d components; E. permuting a ring Z_(N) _(^(d)) , and simultaneously translating the permutation and its inverse to a field Z_(N) ^(d); F. setting the permutations to the identity mapping for the cells in the storage mapping marked as unencrypted; G. repeating step (F) in all N^(d) times, except for cells in the storage mapping marked as unencrypted, while recording data, for the key quadruples that are to do parametrized encryption/decryption on the storage mapping; H. permuting the ring Z_(N) _(^(d)) , and simultaneously translating the permutation and its inverse to the field Z_(N) ^(d); and I. repeating the permuting step (H) for every key quadruple that is to encrypt a register transition mapping.
 62. The method as claimed in claim 61, wherein mappings are represented using polynomials, further comprising the step of: computing i^(th) encryption and decryption mappings using in all 2d polynomial interpolations using R and S and a base-translation function ƒ, for all i quadruples.
 63. The method as claimed in claim 60, further comprising: determining an appropriate representation for an encryption of the register machine; and encryption the register machine.
 64. The method as claimed in claim 61, further comprising the step of acquiring an set of key quadruples for use compositions.
 65. The method as claimed in claim 10, wherein the steps (A)-(E) are performed by a computer.
 66. The method as claimed in claim 13, wherein the steps (A)-(D) are performed by a computer.
 67. The method as claimed in claim 14, wherein the steps (A)-(F) are performed by a computer. 